Change the label "Product" to something else?

Multi Vendor Marketplace Plugin | WCFM Marketplace Forums WCFM – Ultimate Change the label "Product" to something else?

Tagged: ,

This topic contains 1 reply, has 2 voices, and was last updated by WCFM Forum WCFM Forum 2 weeks, 5 days ago.

  • Author
    Posts
  • #102524
    Avatar
    alicia
    Participant

    Is there a filter or hook for me to change the label “Product” to “Lesson”?

    Thanks!

    Attachments:
    You must be logged in to view attached files.
  • #106061
    WCFM Forum
    WCFM Forum
    Keymaster

    Hi,

    Please add this code to your site for the purpose-

    function wcfm_custom_0702_translate_text( $translated ) {
    	$translated = str_ireplace( 'Product', 'Lesson', $translated );
    	return $translated;
    }
    add_filter('gettext', 'wcfm_custom_0702_translate_text');
    add_filter('ngettext', 'wcfm_custom_0702_translate_text');

    Add this code to your child theme’s functions.php
    In case you do not have child theme then add code using this plugin –¬†https://wordpress.org/plugins/code-snippets/

    Thank You

You must be logged in to reply to this topic.