1. Home
  2. Developer
  3. Code Snippets
  4. Add a Job Taxonomy Programmatically

Add a Job Taxonomy Programmatically

add_filter('matador_job_taxonomies', function( $taxonomies ) { 

	$taxonomies['skills'] = [
		'key'    => _x( 'matador-skills', 'textdomain' ),
		'single' => _x( 'skill', 'Job Category Singular Name.', 'textdomain' ),
		'plural' => _x( 'skills', 'Job Category Plural Name.', 'textdomain' ),
	];

	return $taxonomies;
});

add_action( 'matador_job_import_save_job', function( $job, $wpid ) {

	if (  ! empty( $job->skills ) ) {
		wp_set_object_terms( $wpid, $job->skills, 'matador-skills' );
	}
}, 10, 2 );
Updated on October 1, 2025
Was this article helpful?

Related Articles

Need Support?
Can't find the answer you're looking for?
Contact Support