Skip to content

Commit

Permalink
Merge branch 'v1.4-rc1'
Browse files Browse the repository at this point in the history
  • Loading branch information
jjgrainger committed Aug 11, 2015
2 parents 5f5be36 + 432d4b6 commit f152d2c
Show file tree
Hide file tree
Showing 3 changed files with 900 additions and 816 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

##### v1.4
* fix error with taxonomy arrays when generating columns
* run `custom_populate_columns` callbacks using `call_user_func_array()`
* add post updated messages
* add flush method

##### v1.3.3
* add check if exisiting_taxonomies is an array

Expand Down
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# WP Custom Post Type Class v1.3.3
# WP Custom Post Type Class v1.4

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

Expand Down Expand Up @@ -232,6 +232,15 @@ The class is setup for translation, but if you need to set your own textdomain t
$books->set_textdomain('your-textdomain');
```

### Flush Rewrite Rules

You can programmatically recreate the sites rewrite rules with the `flush()` method.
This is an expensive operation and should be used with caution, see [codex](https://codex.wordpress.org/Function_Reference/flush_rewrite_rules) for more.

```php
$books->flush();
```

## Notes

* The class has no methods for making custom fields for post types, use [Advanced Custom Fields](http://advancedcustomfields.com)
Expand Down
Loading

0 comments on commit f152d2c

Please sign in to comment.