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

This topic contains 1 reply, has 2 voices, and was last updated by  Anh Tran 1 week, 4 days ago.

  • 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.