FAQ: Does Recent Revisions support custom post types?
-
Yes, Recent Revisions supports custom post types!
Simply add ‘revisions’ to ‘supports’ when declaring the custom post types:
http://codex.wordpress.org/Function_Reference/register_post_typeExample:
function codex_custom_init() { $args = array( 'public' => true, 'label' => 'Books', 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'comments','revisions') ); register_post_type( 'book', $args ); } add_action( 'init', 'codex_custom_init' );
P.S. Don’t forget to enable revisions in wp-config.php!
- The topic ‘FAQ: Does Recent Revisions support custom post types?’ is closed to new replies.