Skip to content

Commit

Permalink
Merge pull request #34 from noplanman/docs/typos-spelling
Browse files Browse the repository at this point in the history
Fix typos and spelling mistakes
  • Loading branch information
jjgrainger authored Oct 28, 2018
2 parents 3b6ec83 + 72371de commit c6b9a63
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Please keep this in mind when contributing to the project.

## Create an Issue

If you would like to report a bug, feture request, documentation improvement or question please [create an issue](https://github.com/jjgrainger/PostTypes/issues/new). Before creating a new issue please check it has not already been raised by searching [issues](https://github.com/jjgrainger/PostTypes/issues) on GitHub.
If you would like to report a bug, feature request, documentation improvement or question please [create an issue](https://github.com/jjgrainger/PostTypes/issues/new). Before creating a new issue please check it has not already been raised by searching [issues](https://github.com/jjgrainger/PostTypes/issues) on GitHub.

When creating an issue it is best to provide as much information as possible in order to help the discussion move quickly and efficiently.

Expand All @@ -39,7 +39,7 @@ When creating an issue it is best to provide as much information as possible in

### 🐛 Bug Report

Bug reports highlight an an error or unexpected behaviour when using the code. In order to resolve the issue, enough detail must be provided in order to recreate the problem so it can be investigated and fixed.
Bug reports highlight an error or unexpected behaviour when using the code. In order to resolve the issue, enough detail must be provided in order to recreate the problem so it can be investigated and fixed.

**Tips on creating bug reports:**

Expand All @@ -57,7 +57,7 @@ Feature request suggest an idea for an improvement or additional functionality.
* Provide a description of the change you want to make.
* Highlight the problem it attempts to solve.
* Offer examples of how it would be used.
* Provide links to WordPress documentation were relevant.
* Provide links to WordPress documentation where relevant.

### 📖 Documentation Improvements

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Run the following in your terminal to install PostTypes with [Composer](https://
$ composer require jjgrainger/posttypes
```

PostTypes uses [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading and cand be used with Composers autoloader. Below is a basic example of getting started, though your setup maybe different depending on how you are using Composer.
PostTypes uses [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading and can be used with Composers autoloader. Below is a basic example of getting started, though your setup may be different depending on how you are using Composer.

```php
require __DIR__ . '/vendor/autoload.php';
Expand Down
2 changes: 1 addition & 1 deletion docs/Getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Run the following in your terminal to install PostTypes with [Composer](https://
$ composer require jjgrainger/posttypes
```

PostTypes uses [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading and cand be used with Composers autoloader. Below is a basic example of getting started, though your setup maybe different depending on how you are using Composer.
PostTypes uses [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading and can be used with Composers autoloader. Below is a basic example of getting started, though your setup may be different depending on how you are using Composer.

```php
require __DIR__ . '/vendor/autoload.php';
Expand Down
6 changes: 3 additions & 3 deletions docs/post-types/Columns.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ $books->columns()->order([

#### Set Columns

To set all columns to display pass an array of the column slugs and labels to the `set()` method. This overides any other configuration set by the methods above.
To set all columns to display pass an array of the column slugs and labels to the `set()` method. This overrides any other configuration set by the methods above.

```php
$books->columns()->set([
Expand All @@ -63,9 +63,9 @@ $books->columns()->populate('rating', function ($column, $post_id) {

To define which custom columns are sortable use the `sortable()` method. This method accepts an array of column slugs and an array of sorting options.

The first option is the `meta_key` to sort the colums by.
The first option is the `meta_key` to sort the columns by.

The second option is how the items are orders, either numerically (`true`) or alphabetically (`false`) by default.
The second option is how the items are ordered, either numerically (`true`) or alphabetically (`false`) by default.

```php
// will make both the price and rating columns sortable and ordered numerically
Expand Down
8 changes: 4 additions & 4 deletions docs/post-types/Create-a-post-type.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Create a PostType

You can use PostTypes to create a new post type, or work with an [existing post type](#work-with-exisiting-posttypes). PostTypes can be included in your theme or plugins.
You can use PostTypes to create a new post type, or work with an [existing post type](#work-with-existing-posttypes). PostTypes can be included in your theme or plugins.

## Create a new PostType

Expand Down Expand Up @@ -74,7 +74,7 @@ $books->options([
$books->register();
```

The options match the arguements passed to the `register_post_type()` WordPress function. All available options are on the [WordPress Codex](https://codex.wordpress.org/Function_Reference/register_post_type#Parameters)
The options match the arguments passed to the `register_post_type()` WordPress function. All available options are on the [WordPress Codex](https://codex.wordpress.org/Function_Reference/register_post_type#Parameters)

### Set labels

Expand Down Expand Up @@ -105,9 +105,9 @@ $books->register();
All available labels are on the [WordPress Codex](https://codex.wordpress.org/Function_Reference/register_post_type#labels)


## Work with exisiting PostTypes
## Work with existing PostTypes

To work with exisiting post types pass the post type name into the comstructor. Be careful and avoid using global variables (e.g `$post`) which can lead to unwanted results.
To work with existing post types pass the post type name into the constructor. Be careful and avoid using global variables (e.g `$post`) which can lead to unwanted results.

```php
// Create a PostType object for an existing post type in WordPress
Expand Down
6 changes: 3 additions & 3 deletions docs/taxonomies/Create-a-taxonomy.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Taxonomies

Taxonomies are created using the `Taxonomy` class. This works indetically to the `PostType` class and holds similar methods.
Taxonomies are created using the `Taxonomy` class. This works identically to the `PostType` class and holds similar methods.

## Create a new taxonomy

Expand Down Expand Up @@ -68,7 +68,7 @@ $genres->options([
$genres->register();
```

The options match the arguements passed to the `register_taxonomy()` WordPress function. All available options are on the [WordPress Codex](https://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments).
The options match the arguments passed to the `register_taxonomy()` WordPress function. All available options are on the [WordPress Codex](https://codex.wordpress.org/Function_Reference/register_taxonomy#Arguments).

#### Add labels

Expand Down Expand Up @@ -98,7 +98,7 @@ $genres->register();

All available labels are on the [WordPress Codex](https://codex.wordpress.org/Function_Reference/register_taxonomy)

## Work with exisiting Taxonomies
## Work with existing Taxonomies

You can work with existing taxonomies by passing the taxonomy name to the Taxonoy constructor. Once you have made your changes you need to register them to WordPress using the `register()` method.

Expand Down

0 comments on commit c6b9a63

Please sign in to comment.