Restricted
Single use taxonomy to apply a restriction rule
// Register Custom Taxonomy function register_level_restrictions_taxonomy() { $labels = array( 'name' => _x( 'Restrictions', 'Taxonomy General Name', 'text_domain' ), 'singular_name' => _x( 'Restriction', 'Taxonomy Singular Name', 'text_domain' ), 'menu_name' => __( 'Restrictions', 'text_domain' ), 'all_items' => __( 'All Restrictions', 'text_domain' ), 'parent_item' => __( 'Parent Restriction', 'text_domain' ), 'parent_item_colon' => __( 'Parent Restriction:', 'text_domain' ), 'new_item_name' => __( 'New Restriction Name', 'text_domain' ), 'add_new_item' => __( 'Add New Restriction', 'text_domain' ), 'edit_item' => __( 'Edit Restriction', 'text_domain' ), 'update_item' => __( 'Update Restriction', 'text_domain' ), 'view_item' => __( 'View Restriction', 'text_domain' ), 'separate_items_with_commas' => __( 'Separate Restrictions with commas', 'text_domain' ), 'add_or_remove_items' => __( 'Add or remove restrictions', 'text_domain' ), 'choose_from_most_used' => __( 'Choose from the most used', 'text_domain' ), 'popular_items' => __( 'Popular Restrictions', 'text_domain' ), 'search_items' => __( 'Search Items', 'text_domain' ), 'not_found' => __( 'Not Found', 'text_domain' ), 'no_terms' => __( 'No Restrictions', 'text_domain' ), 'items_list' => __( 'Restrictions List', 'text_domain' ), 'items_list_navigation' => __( 'Restrictions List Navigation', 'text_domain' ), ); $args = array( 'labels' => $labels, 'hierarchical' => true, 'public' => false, 'show_ui' => true, 'show_admin_column' => true, 'show_in_nav_menus' => false, 'show_tagcloud' => false, 'rewrite' => false, ); register_taxonomy( 'level_restriction', array( 'post' ), $args ); } add_action( 'init', 'register_level_restrictions_taxonomy', 0 );