Skip to content

Instantly share code, notes, and snippets.

@kaskad88
Created June 2, 2021 14:35
Show Gist options
  • Save kaskad88/a99489eee175c1515a6c482cb6e238ab to your computer and use it in GitHub Desktop.
Save kaskad88/a99489eee175c1515a6c482cb6e238ab to your computer and use it in GitHub Desktop.
add_action( 'admin_init', function () {
if ( ! isset( $_REQUEST['page'] ) ) {
return;
}
if ( ! isset( $_REQUEST['action'] ) || 'jet-engine-op-save-settings' !== $_REQUEST['action'] ) {
return;
}
// do somethings
}, 40 );
@WebAtelier47
Copy link

Hi, is it always the best solution or is there a better one?
Thanks.

@kaskad88
Copy link
Author

Hi, is it always the best solution or is there a better one? Thanks.

Now also available follow actions:

  • jet-engine/options-pages/after-save
  • jet-engine/options-pages/after-save/$page_slug

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment