Created
September 15, 2015 13:15
-
-
Save danfisher85/753777b45d0c20e64c33 to your computer and use it in GitHub Desktop.
[WP Job Manager] How to change Jobs permalinks. Resave permalinks after changing this.
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 Job Permalink | |
function change_job_listing_slug_name( $args ) { | |
$args['rewrite']['slug'] = _x( 'careers', 'Job permalink - resave permalinks after changing this', 'petsitter' ); | |
$args['labels']['name'] = _x( 'Careers', 'New Name for Jobs', 'petsitter' ); | |
$args['labels']['singular_name'] = _x( 'Career', 'New Singular Label for Job', 'petsitter' ); | |
$args['has_archive'] = _x( 'careers', 'Jobs Archieve permalink', 'petsitter' ); | |
return $args; | |
} | |
add_filter( 'register_post_type_job_listing', 'change_job_listing_slug_name' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment