if ( ! function_exists('flix_post_type') ) { // Register Custom Post Type function flix_post_type() { $labels = array( 'name' => _x( 'Flix', 'Post Type General Name', 'screenpartner' ), 'singular_name' => _x( 'Flix', 'Post Type Singular Name', 'screenpartner' ), 'menu_name' => __( 'Flix', 'screenpartner' ), 'name_admin_bar' => __( 'Flix', 'screenpartner' ), 'archives' => __( 'Flix Archives', 'screenpartner' ), 'attributes' => __( 'Flix Attributes', 'screenpartner' ), 'parent_item_colon' => __( 'Parent Flix:', 'screenpartner' ), 'all_items' => __( 'All Flix', 'screenpartner' ), 'add_new_item' => __( 'Add New Flix', 'screenpartner' ), 'add_new' => __( 'Add New', 'screenpartner' ), 'new_item' => __( 'New Flix', 'screenpartner' ), 'edit_item' => __( 'Edit Flix', 'screenpartner' ), 'update_item' => __( 'Update Flix', 'screenpartner' ), 'view_item' => __( 'View Flix', 'screenpartner' ), 'view_items' => __( 'View Flix', 'screenpartner' ), 'search_items' => __( 'Search Flix', 'screenpartner' ), 'not_found' => __( 'Not found', 'screenpartner' ), 'not_found_in_trash' => __( 'Not found in Trash', 'screenpartner' ), 'featured_image' => __( 'Featured Image', 'screenpartner' ), 'set_featured_image' => __( 'Set featured image', 'screenpartner' ), 'remove_featured_image' => __( 'Remove featured image', 'screenpartner' ), 'use_featured_image' => __( 'Use as featured image', 'screenpartner' ), 'insert_into_item' => __( 'Insert into flix', 'screenpartner' ), 'uploaded_to_this_item' => __( 'Uploaded to this flix', 'screenpartner' ), 'items_list' => __( 'Flix list', 'screenpartner' ), 'items_list_navigation' => __( 'Flix list navigation', 'screenpartner' ), 'filter_items_list' => __( 'Filter flix list', 'screenpartner' ), ); $args = array( 'label' => __( 'Flix', 'screenpartner' ), 'description' => __( 'Skoleroms Flix items', 'screenpartner' ), 'labels' => $labels, 'supports' => array( 'title', 'editor', 'thumbnail', 'revisions' ), 'taxonomies' => array( 'flix_category', 'post_tag' ), 'hierarchical' => false, 'public' => true, 'show_ui' => true, 'show_in_menu' => true, 'menu_position' => 25, 'menu_icon' => 'dashicons-format-video', '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' => 'page', 'show_in_rest' => true, ); register_post_type( 'flix', $args ); } add_action( 'init', 'flix_post_type', 0 ); }