Created
April 24, 2017 02:02
-
-
Save fervous/62972f9111468da21d13d869d01c6922 to your computer and use it in GitHub Desktop.
change store name to user name username wc vendors pro
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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