woocommerce_update_non_option_setting action-hookWC 7.8.0

Notifies that a non-option setting has been updated.

Usage

add_action( 'woocommerce_update_non_option_setting', 'wp_kama_woocommerce_update_non_option_setting_action' );

/**
 * Function for `woocommerce_update_non_option_setting` action-hook.
 * 
 * @param  $array 
 *
 * @return void
 */
function wp_kama_woocommerce_update_non_option_setting_action( $array ){

	// action...
}
$array
-

Changelog

Since 7.8.0 Introduced.

Where the hook is called

WC_AJAX::shipping_zone_methods_save_changes()
woocommerce_update_non_option_setting
WC_Settings_API::process_admin_options()
woocommerce_update_non_option_setting
WC_AJAX::shipping_zones_save_changes()
woocommerce_update_non_option_setting
WC_AJAX::shipping_zone_add_method()
woocommerce_update_non_option_setting
WC_AJAX::shipping_zone_remove_method()
woocommerce_update_non_option_setting
WC_AJAX::shipping_zone_methods_save_settings()
woocommerce_update_non_option_setting
WC_AJAX::shipping_classes_save_changes()
woocommerce_update_non_option_setting
woocommerce/includes/class-wc-ajax.php 3256
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'zone_name' ) );
woocommerce/includes/abstracts/abstract-wc-settings-api.php 221-228
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'    => $key,
		'type'  => $field['type'],
		'value' => $this->settings[ $key ],
	)
);
woocommerce/includes/class-wc-ajax.php 3028-3034
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'     => 'shipping_zone',
		'action' => 'delete',
	)
);
woocommerce/includes/class-wc-ajax.php 3056-3061
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id' => 'zone_order',
	)
);
woocommerce/includes/class-wc-ajax.php 3112-3118
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'     => 'shipping_zone',
		'action' => 'add',
	)
);
woocommerce/includes/class-wc-ajax.php 3125-3131
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'     => 'zone_method',
		'action' => 'add',
	)
);
woocommerce/includes/class-wc-ajax.php 3182-3187
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id' => $instance_id,
	)
);
woocommerce/includes/class-wc-ajax.php 3240-3246
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'     => 'shipping_zone',
		'action' => 'add',
	)
);
woocommerce/includes/class-wc-ajax.php 3266
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'zone_locations' ) );
woocommerce/includes/class-wc-ajax.php 3292
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'zone_postcodes' ) );
woocommerce/includes/class-wc-ajax.php 3314-3320
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'     => 'zone_method',
		'action' => 'delete',
	)
);
woocommerce/includes/class-wc-ajax.php 3340
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'zone_methods_order' ) );
woocommerce/includes/class-wc-ajax.php 3350
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'zone_methods_enabled' ) );
woocommerce/includes/class-wc-ajax.php 3406
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'zone_method_settings' ) );
woocommerce/includes/class-wc-ajax.php 3466-3472
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'     => 'shipping_class',
		'action' => 'delete',
	)
);
woocommerce/includes/class-wc-ajax.php 3485
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'shipping_class_name' ) );
woocommerce/includes/class-wc-ajax.php 3495
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'shipping_class_slug' ) );
woocommerce/includes/class-wc-ajax.php 3505
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'shipping_class_description' ) );
woocommerce/includes/class-wc-ajax.php 3519-3525
do_action(
	'woocommerce_update_non_option_setting',
	array(
		'id'     => 'shipping_class',
		'action' => 'add',
	)
);
woocommerce/includes/class-wc-ajax.php 3534
do_action( 'woocommerce_update_non_option_setting', array( 'id' => 'shipping_class' ) );

Where the hook is used in WooCommerce

woocommerce/includes/tracks/events/class-wc-settings-tracking.php 77
add_action( 'woocommerce_update_non_option_setting', array( $this, 'add_option_to_list_and_track_setting_change' ) );