• Resolved Bolder Elements

    (@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:
    https://bit.ly/2G5d6b0

    Thank you!

    • This topic was modified 5 years, 4 months ago by Bolder Elements. Reason: Added image for further details
Viewing 8 replies - 1 through 8 (of 8 total)
  • 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.

    Thread Starter Bolder Elements

    (@hystericallyme)

    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 ??

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

    Where you want to see new filter?

    Thread Starter Bolder Elements

    (@hystericallyme)

    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!!

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

    Thanks

    Thread Starter Bolder Elements

    (@hystericallyme)

    Thank you so much! =)

    Hello,
    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

    Thread Starter Bolder Elements

    (@hystericallyme)

    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.