Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action('init', 'cptui_register_my_cpt');
- function cptui_register_my_cpt() {
- register_post_type('events', array(
- 'label' => "__('Events')",
- 'description' => '',
- 'public' => 'false',
- 'show_ui' => 'true',
- 'show_in_menu' => 'true',
- 'capability_type' => 'post',
- 'hierarchical' => 'false',
- 'rewrite' => array('slug' => 'events', 'with_front' => '1'),
- 'query_var' => 'true',
- 'exclude_from_search' => 'false',
- 'menu_position' => '5',
- 'menu_icon' => '/wp-content/themes/ausnexus/images/icons/wp_events.png',
- 'supports' => array('title','editor','revisions','thumbnail','post-formats'),
- 'labels' => array (
- 'name' => 'Events',
- 'singular_name' => 'Events',
- 'menu_name' => 'Events',
- 'add_new' => 'Add Event',
- 'add_new_item' => 'Add New Event',
- 'edit' => 'Edit',
- 'edit_item' => 'Edit Events',
- 'new_item' => 'New Events',
- 'view' => 'View Events',
- 'view_item' => 'View Events',
- 'search_items' => 'Search Events',
- 'not_found' => 'No Events Found',
- 'not_found_in_trash' => 'No Events Found in Trash',
- 'parent' => 'Parent Events',
- )
- ) ); }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement