acf/options_page/save action-hookACF 6.1.7

Fires after publishing a save on an options page.

Usage

add_action( 'acf/options_page/save', 'wp_kama_acf_options_page_save_action', 10, 2 );

/**
 * Function for `acf/options_page/save` action-hook.
 * 
 * @param string|int $post_id   The current id.
 * @param string     $menu_slug The current options page menu slug.
 *
 * @return void
 */
function wp_kama_acf_options_page_save_action( $post_id, $menu_slug ){
	// action...
}
$post_id(string|int)
The current id.
$menu_slug(string)
The current options page menu slug.

Changelog

Since 6.1.7 Introduced.

Where the hook is called

acf_admin_options_page::admin_load()
acf/options_page/save
acf/pro/admin/admin-options-page.php 117
do_action( 'acf/options_page/save', $this->page['post_id'], $this->page['menu_slug'] );

Where the hook is used in Advanced Custom Fields PRO

Usage not found.