Skip to content

Instantly share code, notes, and snippets.

Last active Oct 3, 2017
What would you like to do?
add_filter( 'your-post-type_post_type_args', '_my_rewrite_slug' ); // Here replace "your-post-type" with the actual post type, e.g., "cherry_services", "cherry-projects"
function _my_rewrite_slug( $args ) {
$args['rewrite']['slug'] = 'our-services'; // Replace "our-services" with your preferable slug
return $args;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment