woocommerce_save_settings_(current_tab)
Usage
add_filter( 'woocommerce_save_settings_(current_tab)', 'wp_kama_woocommerce_save_settings_current_tab_filter' ); /** * Function for `woocommerce_save_settings_(current_tab)` filter-hook. * * @param $condition * * @return */ function wp_kama_woocommerce_save_settings_current_tab_filter( $condition ){ // filter... return $condition; }
- $condition
- -
Where the hook is called
woocommerce_save_settings_(current_tab)
woocommerce/includes/admin/class-wc-admin-menus.php 180
} elseif ( '' === $current_section && apply_filters( "woocommerce_save_settings_{$current_tab}", ! empty( $_POST['save'] ) ) ) { // WPCS: input var okay, CSRF ok.
Where the hook is used in WooCommerce
woocommerce/includes/admin/class-wc-admin-api-keys.php 22
add_filter( 'woocommerce_save_settings_advanced_keys', array( $this, 'allow_save_settings' ) );
woocommerce/includes/admin/class-wc-admin-webhooks.php 22
add_filter( 'woocommerce_save_settings_advanced_webhooks', array( $this, 'allow_save_settings' ) );