Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

work_taxonomy JobTopia

if ( ! function_exists( 'work_taxonomy' ) ) {

// Register Custom Taxonomy
function work_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Work Fields', 'Taxonomy General Name', 'jobtopia' ),
		'singular_name'              => _x( 'Work Field', 'Taxonomy Singular Name', 'jobtopia' ),
		'menu_name'                  => __( 'Work Field', 'jobtopia' ),
		'all_items'                  => __( 'All Work Fields', 'jobtopia' ),
		'parent_item'                => __( 'Parent Work Field', 'jobtopia' ),
		'parent_item_colon'          => __( 'Parent Work Field:', 'jobtopia' ),
		'new_item_name'              => __( 'New Work Field Name', 'jobtopia' ),
		'add_new_item'               => __( 'Add New Work Field', 'jobtopia' ),
		'edit_item'                  => __( 'Edit Work Field', 'jobtopia' ),
		'update_item'                => __( 'Update Work Field', 'jobtopia' ),
		'view_item'                  => __( 'View Work Field', 'jobtopia' ),
		'separate_items_with_commas' => __( 'Separate work fields with commas', 'jobtopia' ),
		'add_or_remove_items'        => __( 'Add or remove work fields', 'jobtopia' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'jobtopia' ),
		'popular_items'              => __( 'Popular Work Fields', 'jobtopia' ),
		'search_items'               => __( 'Search Work Fields', 'jobtopia' ),
		'not_found'                  => __( 'Not Found', 'jobtopia' ),
		'no_terms'                   => __( 'No items', 'jobtopia' ),
		'items_list'                 => __( 'Work fields list', 'jobtopia' ),
		'items_list_navigation'      => __( 'Work fields list navigation', 'jobtopia' ),
	);
	$args = array(
		'labels'                     => $labels,
		'hierarchical'               => false,
		'public'                     => true,
		'show_ui'                    => true,
		'show_admin_column'          => true,
		'show_in_nav_menus'          => true,
		'show_tagcloud'              => true,
		'show_in_rest'               => true,
	);
	register_taxonomy( 'work', array( 'jobs' ), $args );

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

}