Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- register_post_type( 'videos',
- array(
- 'labels' => array(
- 'name' => __( 'Videos' ),
- 'singular_name' => __( 'Video' ),
- 'add_new' => __( 'Add New Video' ),
- 'add_new_item' => __( 'Add New Videos' ),
- 'edit_item' => __( 'Edit Videos' ),
- 'new_item' => __( 'New Videos' ),
- 'view_item' => __( 'View Videos' ),
- 'not_found' => __( 'Sorry, we couldn\'t find the Videos you are looking for.' ),
- 'featured_image' => __('Video Thumbnail'),
- 'set_featured_image' => __('Set Thumbnail Image'),
- 'remove_featured_image' => __('Remove Thumbnail Image'),
- 'use_featured_image' => __('Use Thumbnail Image'),
- ),
- 'public' => true,
- 'publicly_queryable' => true,
- 'exclude_from_search' => true,
- 'menu_position' => 14,
- 'has_archive' => false,
- 'hierarchical' => false,
- 'menu_icon' => 'dashicons-video-alt2',
- 'capability_type' => 'page',
- 'rewrite' => array( 'slug' => 'videos' ),
- 'supports' => array( 'title', 'thumbnail' )
- )
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement