if ( ! function_exists( 'flix_category' ) ) { // Register Custom Taxonomy function flix_category() { $labels = array( 'name' => _x( 'Flix Categories', 'Taxonomy General Name', 'screenpartner' ), 'singular_name' => _x( 'Flix Category', 'Taxonomy Singular Name', 'screenpartner' ), 'menu_name' => __( 'Flix Categories', 'screenpartner' ), 'all_items' => __( 'All Categories', 'screenpartner' ), 'parent_item' => __( 'Parent Category', 'screenpartner' ), 'parent_item_colon' => __( 'Parent Category:', 'screenpartner' ), 'new_item_name' => __( 'New Category Name', 'screenpartner' ), 'add_new_item' => __( 'Add New Category', 'screenpartner' ), 'edit_item' => __( 'Edit Category', 'screenpartner' ), 'update_item' => __( 'Update Category', 'screenpartner' ), 'view_item' => __( 'View Category', 'screenpartner' ), 'separate_items_with_commas' => __( 'Separate categories with commas', 'screenpartner' ), 'add_or_remove_items' => __( 'Add or remove categories', 'screenpartner' ), 'choose_from_most_used' => __( 'Choose from the most used', 'screenpartner' ), 'popular_items' => __( 'Popular Categories', 'screenpartner' ), 'search_items' => __( 'Search Categories', 'screenpartner' ), 'not_found' => __( 'Not Found', 'screenpartner' ), 'no_terms' => __( 'No categories', 'screenpartner' ), 'items_list' => __( 'Category list', 'screenpartner' ), 'items_list_navigation' => __( 'Category list navigation', 'screenpartner' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => true, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => true, 'show_tagcloud' => false, 'show_in_rest' => true, ); register_taxonomy( 'flix_category', array( 'flix' ), $args ); } add_action( 'init', 'flix_category', 0 ); }