Skip to content

Instantly share code, notes, and snippets.

@kraftbj
Created October 29, 2015 21:17
Show Gist options
  • Save kraftbj/f45eeef8c43c41d84390 to your computer and use it in GitHub Desktop.
Save kraftbj/f45eeef8c43c41d84390 to your computer and use it in GitHub Desktop.
No names in resume slug
<?php //remove in an existing PHP file
add_filter( "register_post_type_resume", "wpjm_no_name_resume_false_rewrite" );
function wpjm_no_name_resume_false_rewrite( $args ){
$args['rewrite'] = false;
$args['query_var'] = false;
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment