Skip to content

Commit

Permalink
Merge branch 'fix-textdomain'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjgrainger committed Dec 10, 2014
2 parents 38463cd + a138805 commit 5d064cb
Show file tree
Hide file tree
Showing 3 changed files with 860 additions and 975 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

##### v1.3.0
* fix translation issues
* new method to set custom textdomain with `set_textdomain()`

##### v1.2.4
* add check if `$filter` array is empty

Expand Down Expand Up @@ -28,4 +32,4 @@
##### v1.0.1
* fixed issue with registering taxonomies
* fixed issue with options merge, now accepts boolean
* register_taxonomy method can now register exisiting taxonomies to post type
* register_taxonomy method can now register exisiting taxonomies to post type
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WP Custom Post Type Class v1.2.4
# WP Custom Post Type Class v1.3

A single class to help you build more advanced custom post types quickly.

Expand Down Expand Up @@ -217,10 +217,17 @@ $books->menu_icon("dashicons-book-alt");

For a full list of icons and the class names to use visit [http://melchoyce.github.io/dashicons/](http://melchoyce.github.io/dashicons/)

### Translation

The class is setup for translation, but if you need to set your own textdomain to work with your theme or plugin use the `set_textdomain()` method:

```php
$books->set_textdomain('your-textdomain');
```

## Notes

* The class has no methods for making custom fields for post types, use [Advanced Custom Fields (ACF)](http://advancedcustomfields.com)
* The class has no methods for making custom fields for post types, use [Advanced Custom Fields](http://advancedcustomfields.com)
* The books example used in the README.md can be found in the [books-post-type.php](examples/books-post-type.php)
* Licensed under the [MIT License](https://github.com/jjgrainger/wp-custom-post-type-class/blob/master/LICENSE)
* Maintained under the [Semantic Versioning Guide](http://semver.org)
Expand Down
Loading

0 comments on commit 5d064cb

Please sign in to comment.