Skip to content

Instantly share code, notes, and snippets.

@fervous
Created April 24, 2017 02:02
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 fervous/62972f9111468da21d13d869d01c6922 to your computer and use it in GitHub Desktop.
Save fervous/62972f9111468da21d13d869d01c6922 to your computer and use it in GitHub Desktop.
change store name to user name username wc vendors pro
/* WC Vendors Pro - Change the default vendor store name from "Username Store" to "username only" */
add_filter('wcv_default_store_name', 'new_wcv_default_store_name');
function new_wcv_default_store_name () {
$current_user = wp_get_current_user();
$new_store_default = $current_user->user_login;
return $new_store_default;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment