Custom Fields
Re-Envisioned
Support MB Settings Page Run Custom Function on Save Setting

  • Creator
    Topic
  • #16765
    Resolved Manoj Kumar
    Participant

    Hi,

    I need to run my custom function on clicking the Save Settings button. Are there any hooks to run my custom function.

    Thanks in Advance.

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #16782
    Anh Tran
    Keymaster

    Hi Manoj,

    Please use the hook mb_settings_page_load with priority > 10, like this:

    add_action( 'mb_settings_page_load', function() {
        // Run your code.
    }, 20 );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.