Skip to content

Instantly share code, notes, and snippets.

@danjjohnson
Created December 4, 2019 14:49
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/0104476b2554ed2ac574fb30e1af1f18 to your computer and use it in GitHub Desktop.
Save danjjohnson/0104476b2554ed2ac574fb30e1af1f18 to your computer and use it in GitHub Desktop.
Change resume permalink base
function change_resume_slug( $args ) {
$args['rewrite']['slug'] = _x( 'cv', 'Resume permalink - resave permalinks after changing this', 'wp_job_manager_resumes' );
return $args;
}
add_filter( 'register_post_type_resume', 'change_resume_slug' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment