Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

School Statuses

if ( ! function_exists( 'school_status' ) ) {

// Register Custom Taxonomy
function school_status() {

	$labels = array(
		'name'                       => _x( 'School Statuses', 'Taxonomy General Name', 'mdm-school-closing' ),
		'singular_name'              => _x( 'School Status', 'Taxonomy Singular Name', 'mdm-school-closing' ),
		'menu_name'                  => __( 'Status', 'mdm-school-closing' ),
		'all_items'                  => __( 'All Statuses', 'mdm-school-closing' ),
		'parent_item'                => __( 'Parent Status', 'mdm-school-closing' ),
		'parent_item_colon'          => __( 'Parent Status:', 'mdm-school-closing' ),
		'new_item_name'              => __( 'New Status', 'mdm-school-closing' ),
		'add_new_item'               => __( 'Add New Status', 'mdm-school-closing' ),
		'edit_item'                  => __( 'Edit Status', 'mdm-school-closing' ),
		'update_item'                => __( 'Update Status', 'mdm-school-closing' ),
		'view_item'                  => __( 'View Status', 'mdm-school-closing' ),
		'separate_items_with_commas' => __( 'Separate items with commas', 'mdm-school-closing' ),
		'add_or_remove_items'        => __( 'Add or remove statuses', 'mdm-school-closing' ),
		'choose_from_most_used'      => __( 'Choose from the most used statuses', 'mdm-school-closing' ),
		'popular_items'              => __( 'Popular Statuses', 'mdm-school-closing' ),
		'search_items'               => __( 'Search Statuses', 'mdm-school-closing' ),
		'not_found'                  => __( 'Not Found', 'mdm-school-closing' ),
		'items_list'                 => __( 'Status list', 'mdm-school-closing' ),
		'items_list_navigation'      => __( 'Status list navigation', 'mdm-school-closing' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => false,
		'show_tagcloud'              => false,
	);
	register_taxonomy( 'school_status', array( 'school-closings' ), $args );

}
add_action( 'init', 'school_status', 0 );

}