Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- register_post_type( 'post', array(
- 'labels' => array(
- 'name_admin_bar' => _x( 'Post', 'add new from admin bar' ),
- ),
- 'public' => true,
- '_builtin' => true,
- '_edit_link' => 'post.php?post=%d',
- 'capability_type' => 'post',
- 'map_meta_cap' => true,
- 'menu_position' => 5,
- 'hierarchical' => false,
- 'rewrite' => false,
- 'query_var' => false,
- 'delete_with_user' => true,
- 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats' ),
- 'show_in_rest' => true,
- 'rest_base' => 'posts',
- 'rest_controller_class' => 'WP_REST_Posts_Controller',
- ) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement