retesere20

Untitled

Jan 14th, 2018
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. register_post_type( 'post', array(
  2. 'labels' => array(
  3. 'name_admin_bar' => _x( 'Post', 'add new from admin bar' ),
  4. ),
  5. 'public' => true,
  6. '_builtin' => true,
  7. '_edit_link' => 'post.php?post=%d',
  8. 'capability_type' => 'post',
  9. 'map_meta_cap' => true,
  10. 'menu_position' => 5,
  11. 'hierarchical' => false,
  12. 'rewrite' => false,
  13. 'query_var' => false,
  14. 'delete_with_user' => true,
  15. 'supports' => array( 'title', 'editor', 'author', 'thumbnail', 'excerpt', 'trackbacks', 'custom-fields', 'comments', 'revisions', 'post-formats' ),
  16. 'show_in_rest' => true,
  17. 'rest_base' => 'posts',
  18. 'rest_controller_class' => 'WP_REST_Posts_Controller',
  19. ) );
RAW Paste Data