Public Ticket #4162849

Changing Vendor Info Display Name

Closed
Comments
38 Tickets 14
Ryan Dwyer started the conversation 1 year ago on July 21, 2025 at 9:50pm

One of my vendor's was asking if the Vendor Info could be changed, for example, to Pianist Bio. I'm guessing there is an easy way through code? I also suggest in one of your future updates to create an option to change that in the admin area. (Perhaps that is already there and I missed it?)

2,762
KingsPlugins replied 1 year ago on July 25, 2025 at 2:11pm

Hi Ryan,

Do you mean changing texts here https://sheetmusicpianists.com/pianists/richbatsford/info/ such as "Vendor Details" and "Vendor Information" to custom texts?

There's no built-in way to do that with the plugin, but you can do it with a code snippet:

function change_vendor_info_text( $translated_text, $text, $domain ) {
    // Check if this is the correct text domain
    if ( $domain === 'marketking-multivendor-marketplace-for-woocommerce' ) {
        // Replace the specific text
        if ( $text === 'Vendor Information' || $translated_text === 'Vendor Information' ) {
            return 'Pianist Bio';
        }

        if ( $text === 'Vendor Details' || $translated_text === 'Vendor Details' ) {
            return 'Pianist Details';
        }
    }
    
    return $translated_text;
}
add_filter( 'gettext', 'change_vendor_info_text', 20, 3 );

 

As you can see in the code, this changes 'Vendor Information' to 'Pianist Bio' and 'Vendor Details' to 'Pianist Details'. Feel free to change these to any text you would like.

 

This code snippet can be added to functions.php or any snippets plugin. It can be extended to target any other texts as well.

 

Kind regards,

Stefan

2,762
KingsPlugins replied 8 months ago on February 18, 2026 at 12:58pm

Hi Ryan,

I checked that now using the access credentials you shared in the other ticket,

A small change was needed in the code snippet.

I believe it's working correctly now:

8431052448.png

 

Let me know if you see any issues or if you need any adjustments,

 

Kind regards,

Stefan

Sign In