Support » Plugin: License Manager for WooCommerce » Idea : option to personalize strings

  • Resolved madgicsysteme

    (@madgicsysteme)


    Hello,

    A nice feature is the possibility in the options to personalize strings like “Your license key(s)”, like some other plugins.

    It’s useful to translate or adapt the text. For exemple in my case, is not for licences but for a system of gift tickets for guided walks. The term licence key is not very adapted for my case.

Viewing 1 replies (of 1 total)
  • Plugin Author Drazen Bebic

    (@drazenbebic)

    Hello @madgicsysteme,

    thank you for your message and for using my plugin.

    This has been previously brought to my attention. I’ll add some sort of string translator like a user previously mentioned. Then you would have a new section inside the settings which would allow you to translate all strings visible to the end-user. Please tell me what you think of this.

    Currently it is only possible to change this text using a WordPress filter hook, here’s an example:

    function new_heading($text) {
    	return 'Your coupon codes are right here';
    }
    add_filter('lmfwc_license_keys_table_heading', 'new_heading');

    Just add this bit of code into your child-theme’s functions.php. Instead of “Your coupon codes are right here”, you can of course type anything you want. If you need further help with this let me know as well.

    PS: It would help me tremendously if you took some time out of your day to write a plugin review here on WordPress. Those reviews really help spread the plugin and mean a lot to me personally.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.