Skip to content

Instantly share code, notes, and snippets.

@MarkKevin08
Created December 19, 2020 08:50
Show Gist options
  • Save MarkKevin08/7a703011fad6d28c4620613e618a6179 to your computer and use it in GitHub Desktop.
Save MarkKevin08/7a703011fad6d28c4620613e618a6179 to your computer and use it in GitHub Desktop.
change dashboard slug
add_filter( 'wcv_pro_dashboard_urls', 'change_slugs' );
function change_slugs($args) {
$args['product']['slug'] = 'add-custom-slug';
return $args;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment