Home Forums WC Vendors Free Support Change the word "Vendor" and the word "Product"

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 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #10810
    Riad Kilani
    Participant

    Hello I am trying to change the word “Vendor” and the word “Product” across the whole site. I am able to do this through JavaScript but I would like to do this through functions.php for performance reasons. How can I accomplish this?

    Thank You

    #10825
    WC Vendors Support
    Participant
    #10901
    Riad Kilani
    Participant

    Hello Ben, I did check that out before I submitted the post but it only applies to those 4 instances. I need it site wide and I dont want to edit core files. I tried changing the word Vendor Dashboard using the following but it did not work:

    add_filter( 'wcv_vendor_dashboard', 'custom_vendor_dashboard_label' ,10, 1 );
    function custom_vendor_dashboard_label( $message ) {
    $message = "Seller Dashboard";
    return $message;
    }

    Any ideas on how I can change all instances of the word Vendor and all instance of the word Product?

    #10902
    WC Vendors Support
    Participant

    Sounds like you could take the default.pot in the /languages folder and just translate it and use that instead. As for replacing “Product”, that’s a WooCommerce thing, not WC Vendors, but this will help with strings in the WC Vendors plugin at least. 😉

    #10939
    Riad Kilani
    Participant

    If I fork the project and add those changes in can I get them added in to the next release so they don’t get overwritten?

    Thanks.

    #10949
    WC Vendors Support
    Participant

    You’re always welcome to submit pull requests to GitHub, sure! But if all you are doing is changing a language file, that wouldnt be anything that is a new feature or a fix for WC Vendors, so I’m not sure that’s the right thing to do. The language files you use would just go in /wp-content/languages/ so they are not overwritten.

    https://codex.wordpress.org/Installing_WordPress_in_Your_Language

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