filmstrip
// Register Custom Post Type
function register_filmstrip() {
$labels = array(
'name' => _x( 'Filmstrip Centers', 'Post Type General Name', 'theissue' ),
'singular_name' => _x( 'Filmstrip Center', 'Post Type Singular Name', 'theissue' ),
'menu_name' => __( 'Filmstrip Center', 'theissue' ),
'name_admin_bar' => __( 'Post Type', 'theissue' ),
'archives' => __( 'Filmstrip archives', 'theissue' ),
'attributes' => __( 'Item Attributes', 'theissue' ),
'parent_item_colon' => __( 'Parent Filmstrip:', 'theissue' ),
'all_items' => __( 'All Filmstrips', 'theissue' ),
'add_new_item' => __( 'Add new Filmstrip', 'theissue' ),
'add_new' => __( 'Add New', 'theissue' ),
'new_item' => __( 'New Filmstrip', 'theissue' ),
'edit_item' => __( 'Edit Filmstrip', 'theissue' ),
'update_item' => __( 'Update Filmstrip', 'theissue' ),
'view_item' => __( 'View Filmstrip', 'theissue' ),
'view_items' => __( 'View Filmstrip', 'theissue' ),
'search_items' => __( 'Search Filmstrip', 'theissue' ),
'not_found' => __( 'No Filmstrips found', 'theissue' ),
'not_found_in_trash' => __( 'No Filmstrips found in trash', 'theissue' ),
'featured_image' => __( 'Featured image for this Filmstrip', 'theissue' ),
'set_featured_image' => __( 'Set featured image for this Filmstrip', 'theissue' ),
'remove_featured_image' => __( 'Remove featured image for this Filmstrip', 'theissue' ),
'use_featured_image' => __( 'Use as featured image for this Filmstrip', 'theissue' ),
'insert_into_item' => __( 'Insert into Filmstrip', 'theissue' ),
'uploaded_to_this_item' => __( 'Upload to this Filmstrip', 'theissue' ),
'items_list' => __( 'Filmstrips list', 'theissue' ),
'items_list_navigation' => __( 'Filmstrips list navigation', 'theissue' ),
'filter_items_list' => __( 'Filter Filmstrips list', 'theissue' ),
);
$args = array(
'label' => __( 'Filmstrip Center', 'theissue' ),
'description' => __( 'Filmstrip Center', 'theissue' ),
'labels' => $labels,
'supports' => array( 'title', 'editor', 'thumbnail', 'custom-fields' ),
'taxonomies' => array( 'category', 'post_tag' ),
'hierarchical' => false,
'public' => true,
'show_ui' => true,
'show_in_menu' => true,
'menu_position' => 5,
'menu_icon' => 'dashicons-media-interactive',
'show_in_admin_bar' => true,
'show_in_nav_menus' => true,
'can_export' => true,
'has_archive' => true,
'exclude_from_search' => false,
'publicly_queryable' => true,
'capability_type' => 'post',
'show_in_rest' => true,
'rest_base' => 'filmstrip',
);
register_post_type( 'filmstrip', $args );
}
add_action( 'init', 'register_filmstrip', 0 );