Skip to content

Instantly share code, notes, and snippets.

@richardmtl
Created February 17, 2020 20:28
Show Gist options
  • Save richardmtl/ff5c52c406d490131b824e2bfa4ac679 to your computer and use it in GitHub Desktop.
Save richardmtl/ff5c52c406d490131b824e2bfa4ac679 to your computer and use it in GitHub Desktop.
function change_resume_slug( $args ) {
$args['rewrite']['slug'] = _x( 'kielipalvelu', '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