woocommerce_rest_api_valid_to_save filter-hookWC 1.0

Usage

add_filter( 'woocommerce_rest_api_valid_to_save', 'wp_kama_woocommerce_rest_api_valid_to_save_filter' );

/**
 * Function for `woocommerce_rest_api_valid_to_save` filter-hook.
 * 
 * @param  $condition 
 *
 * @return 
 */
function wp_kama_woocommerce_rest_api_valid_to_save_filter( $condition ){

	// filter...
	return $condition;
}
$condition
-

Where the hook is called

WC_Settings_Advanced::save()
woocommerce_rest_api_valid_to_save
woocommerce/includes/admin/settings/class-wc-settings-advanced.php 478
if ( apply_filters( 'woocommerce_rest_api_valid_to_save', ! in_array( $current_section, array( 'keys', 'webhooks' ), true ) ) ) {

Where the hook is used in WooCommerce

Usage not found.