admin管理员组

文章数量:1387437

How to create a tag and category for plugins just like the function shown below performs for pages?

function add_categories_to_pages() {
   register_taxonomy_for_object_type( 'category', 'page' );
}
add_action( 'init', 'add_categories_to_pages' );

function add_tags_to_pages() {
   register_taxonomy_for_object_type( 'post_tag', 'page' );
}
add_action( 'init', 'add_tags_to_pages');

I tried to manipulate for category but with no success

本文标签: codexadding category and tags to admin plugins menu