Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Post Types
- *
- * This file registers any custom post types
- *
- */
- /**
- * Create Sponsor Post Type
- *
- */
- function ssm_register_sponsor_post_type() {
- $labels = array(
- 'name' => 'Sponsors',
- 'singular_name' => 'Sponsor',
- 'add_new' => 'Add New',
- 'add_new_item' => 'Add New Sponsor',
- 'edit_item' => 'Edit Sponsor',
- 'new_item' => 'New Sponsor',
- 'view_item' => 'View Sponsor',
- 'search_items' => 'Search Sponsors',
- 'not_found' => 'No sponsors found',
- 'not_found_in_trash' => 'No sponsors found in trash',
- 'parent_item_colon' => '',
- 'menu_name' => 'Sponsors'
- );
- $args = array(
- 'labels' => $labels,
- 'public' => true,
- 'publicly_queryable' => true,
- 'exclude_from_search' => true,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'query_var' => true,
- 'rewrite' => true,
- 'capability_type' => 'page',
- 'has_archive' => false,
- 'hierarchical' => true,
- 'supports' => array('title','thumbnail')
- );
- register_post_type( 'sponsor', $args );
- }
- add_action( 'init', 'ssm_register_sponsor_post_type' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement