• Resolved hystericallyme


    I have a shipping method plugin that is compatible with WPML. I am inserting a new feature that I want to be able to toggle on/off. It needs to be just one toggle, so I can’t put it in the settings for my individual shipping method. Is there a hook or filter I can use to insert my settings field somewhere in WCML or WPML? I’ve tried browsing the code with no luck.

    Something like this is preferable:

    Thank you!

    • This topic was modified 1 year, 3 months ago by hystericallyme. Reason: Added image for further details
Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Support George Botsev


    Hello and thank you for contacting us.
    I will consult with our developers.
    However, I know for a hook: wcml_before_multi_currency_ui that might work for you probably.
    You might want to check that out.

    Sorry, I missed the response notification. Something like that is definitely very close! It puts my field outside the <form> tag though which isn’t preferable. Then I’d have to have my own separate form. It’s also under the ‘multi-currency’ tab which may be a bit confusing for some users as the two are not really related. If it’s my only option I can make it work, but I am interested to know if you have heard anything further 🙂

    Plugin Author sergey.r


    currently we have only this filter but we can add another one to next release.

    Where you want to see new filter?

    Ideally I would love something at the bottom of the ‘Settings’ tab so I could do something like this: https://bolderelements.net/img/new-wcml-option.png

    Is there a filter that runs when things are saved too? So I can make sure to save my extra fields at the appropriate time?

    Thanks so much for your consideration!!

    Plugin Author sergey.r


    I have created a ticket for next version and update you here with hooks names little later


    Thank you so much! =)

    Plugin Author sergey.r


    in next version “wcml_settings_ui_after_default” action will be available which you can use to show additional settings

    To save your settings you can use own function or hook into “wcml_settings” option

    Very cool, thank you so much! I look forward to giving a try 🙂

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add Settings Field’ is closed to new replies.