Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danjjohnson/8424a87c691231d2699b2a9904a3c7af to your computer and use it in GitHub Desktop.
Save danjjohnson/8424a87c691231d2699b2a9904a3c7af to your computer and use it in GitHub Desktop.
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