woocommerce_update_option, $option

woocommerce_update_option, $option

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: woocommerce.11.0.0

do_action('woocommerce_update_option, $option') is found 3 times:

  • /includes/admin/class-wc-admin-settings.php line 1055
    				 * Fire an action before saved.
    				 *
    				 * @deprecated 2.4.0 - doesn't allow manipulation of values!
    				 */
    				do_action( 'woocommerce_update_option', $option );
    			}
    
    			// Save all options in our array.
    			foreach ( $update_options as $name => $value ) {
    				update_option( $name, $value, $autoload_options[ $name ] ? 'yes' : 'no' );
    			}
    
  • /includes/class-wc-ajax.php line 4176
    					if ( $gateway->needs_setup() ) {
    						wp_send_json_error( 'needs_setup' );
    						wp_die();
    					} else {
    						do_action( 'woocommerce_update_option', $option );
    						$gateway->update_option( 'enabled', 'yes' );
    					}
    				} else {
    					do_action( 'woocommerce_update_option', $option );
    					// Disable the gateway.
    					$gateway->update_option( 'enabled', 'no' );
    
  • /includes/class-wc-ajax.php line 4180
    						do_action( 'woocommerce_update_option', $option );
    						$gateway->update_option( 'enabled', 'yes' );
    					}
    				} else {
    					do_action( 'woocommerce_update_option', $option );
    					// Disable the gateway.
    					$gateway->update_option( 'enabled', 'no' );
    				}
    				do_action( 'woocommerce_update_options' );
    				wp_send_json_success( ! wc_string_to_bool( $enabled ) );
    				wp_die();