Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

lang_taxonomy JobTopia

if ( ! function_exists( 'lang_taxonomy' ) ) {

// Register Custom Taxonomy
function lang_taxonomy() {

	$labels = array(
		'name'                       => _x( 'Languages', 'Taxonomy General Name', 'jobtopia' ),
		'singular_name'              => _x( 'Language', 'Taxonomy Singular Name', 'jobtopia' ),
		'menu_name'                  => __( 'Language', 'jobtopia' ),
		'all_items'                  => __( 'All Languages', 'jobtopia' ),
		'parent_item'                => __( 'Parent Language', 'jobtopia' ),
		'parent_item_colon'          => __( 'Parent Language:', 'jobtopia' ),
		'new_item_name'              => __( 'New Language Name', 'jobtopia' ),
		'add_new_item'               => __( 'Add New Language', 'jobtopia' ),
		'edit_item'                  => __( 'Edit Language', 'jobtopia' ),
		'update_item'                => __( 'Update Language', 'jobtopia' ),
		'view_item'                  => __( 'View Language', 'jobtopia' ),
		'separate_items_with_commas' => __( 'Separate languages with commas', 'jobtopia' ),
		'add_or_remove_items'        => __( 'Add or remove languages', 'jobtopia' ),
		'choose_from_most_used'      => __( 'Choose from the most used', 'jobtopia' ),
		'popular_items'              => __( 'Popular Languages', 'jobtopia' ),
		'search_items'               => __( 'Search Languages', 'jobtopia' ),
		'not_found'                  => __( 'Not Found', 'jobtopia' ),
		'no_terms'                   => __( 'No languages', 'jobtopia' ),
		'items_list'                 => __( 'Languages list', 'jobtopia' ),
		'items_list_navigation'      => __( 'Languages 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( 'lang', array( 'jobs' ), $args );

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

}