Home Forums WC Vendors Pro Support username Store

NOTICE: We've Moved to a Ticket System for Support

As of August 31, 2017 (12am EST) our support forums will be retired (read-only), and we will be moving to a support ticket system.  This will allow us to better organize and answer support requests, and provide a more personalized experience as we assist our customers.

For the time being, we will leave our forums open for reading and learning while we work on creating a more robust Knowledge Base for everyone to use.

If you are a WC Vendors Pro customer please open a support ticket here. 

If you are a WC Vendors user please open a support ticket on the Wordpress.org forums.

The information on this forum is outdated and in most instances no longer relevant. Please be sure to check our documentation for the most up to date information.

https://docs.wcvendors.com/

Thank you to all of our customers!

 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #27143
    netteran
    Participant

    How to get rid of word “Store” in the default name in vendor application form?

    I want to leave only the default name.

    #27146
    WC Vendors Support
    Participant

    https://gist.github.com/bentasm1/9d746b4a3d2fc3b5c543

    This sample code is a good starting point! 🙂

    You’d probably want to change:

    $new_store_default = 'My Default Store Title';

    to:

    $current_user = wp_get_current_user();
    $new_store_default = $current_user->user_login;

    or:

    $current_user = wp_get_current_user();
    $new_store_default = $current_user->display_name

    or:

    $current_user = wp_get_current_user();
    $new_store_default = $current_user->user_firstname . $current_user->user_lastname

    ….but you get the idea. 🙂

    #27151
    netteran
    Participant

    Perfect, thx!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘WC Vendors Pro Support’ is closed to new topics and replies.