Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WPJM - change the job-category and job-type slugs
// Change the 'job-category' slug
add_filter( 'register_taxonomy_job_listing_category_args', 'change_job_listing_category_rewrite' );
function change_job_listing_category_rewrite( $options ) {
$options['rewrite'] = array(
'slug' => 'industria',
'with_front' => false,
'hierarchical' => false,
);
return $options;
}
// Change the 'job-type' slug
add_filter( 'register_taxonomy_job_listing_type_args', 'change_job_listing_type_rewrite' );
function change_job_listing_type_rewrite( $options ) {
$options['rewrite'] = array(
'slug' => 'do-not-know',
'with_front' => false,
'hierarchical' => false,
);
return $options;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.