Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- add_action( 'init', 'info_advert_init' );
- /* Here we create our Advertisment Custom Post Types */
- function info_advert_init() {
- $labels = array(
- 'name' => _x( 'Content Advertisment', 'Content Advertisments' ),
- 'singular_name' => _x( 'Content Advertisment', 'Content Advertisment' ),
- 'add_new' => _x( 'Add New', 'advert' ),
- 'add_new_item' => __( 'Add New Advertisment' ),
- 'edit_item' => __( 'Edit Advertisment' ),
- 'new_item' => __( 'New Advertisment' ),
- 'view_item' => __( 'View Advertisment' ),
- 'search_items' => __( 'Search Advertisments' ),
- 'not_found' => __( 'No Advertisment found' ),
- 'not_found_in_trash' => __( 'No Advertisments found in Trash' ),
- 'parent_item_colon' => '',
- 'show_in_nav_menus' => false
- );
- $args = array( 'labels' => $labels,
- 'public' => true,
- 'publicly_queryable' => true,
- 'show_ui' => true,
- 'query_var' => true,
- 'rewrite' => true,
- 'capability_type' => 'post',
- 'hierarchical' => false,
- 'menu_position' => null,
- 'supports' => array( 'title', 'editor')
- );
- register_post_type( 'advert', $args );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement