Created
June 8, 2017 13:46
-
-
Save danjjohnson/8424a87c691231d2699b2a9904a3c7af to your computer and use it in GitHub Desktop.
WPJM - change the job-category and job-type slugs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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