woocommerce_update_options

woocommerce_update_options

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

do_action('woocommerce_update_options') is found 8 times:

  • /includes/admin/class-wc-admin-settings.php line 79
     
    			// Trigger actions.
    			do_action( 'woocommerce_settings_save_' . $current_tab );
    			do_action( 'woocommerce_update_options_' . $current_tab );
    			do_action( 'woocommerce_update_options' );
    
    			self::add_message( __( 'Your settings have been saved.', 'woocommerce' ) );
    			self::check_download_folder_protection();
    
    			// Clear any unwanted data and flush rules.
    			update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' );
    
  • /includes/class-wc-ajax.php line 3069
    		 * Completes the saving process for options.
    		 *
    		 * @since 7.8.0
    		 */
    		do_action( 'woocommerce_update_options' );
    		wp_send_json_success(
    			array(
    				'zones' => WC_Shipping_Zones::get_zones( 'json' ),
    			)
    		);
    	}
    
  • /includes/class-wc-ajax.php line 3135
    		 * Completes the saving process for options.
    		 *
    		 * @since 7.8.0
    		 */
    		do_action( 'woocommerce_update_options' );
    
    		wp_send_json_success(
    			array(
    				'instance_id' => $instance_id,
    				'zone_id'     => $zone->get_id(),
    				'zone_name'   => $zone->get_zone_name(),
    
  • /includes/class-wc-ajax.php line 3194
    		 * Completes the saving process for options.
    		 *
    		 * @since 7.8.0
    		 */
    		do_action( 'woocommerce_update_options' );
    
    		wp_send_json_success(
    			array(
    				'instance_id' => $instance_id,
    				'methods'     => $zone->get_shipping_methods( false, 'json' ),
    			)
    
  • /includes/class-wc-ajax.php line 3362
    		 * Completes the saving process for options.
    		 *
    		 * @since 7.8.0
    		 */
    		do_action( 'woocommerce_update_options' );
    
    		wp_send_json_success(
    			array(
    				'zone_id'   => $zone->get_id(),
    				'zone_name' => $zone->get_zone_name(),
    				'methods'   => $zone->get_shipping_methods( false, 'json' ),
    
  • /includes/class-wc-ajax.php line 3410
    		 * Completes the saving process for options.
    		 *
    		 * @since 7.8.0
    		 */
    		do_action( 'woocommerce_update_options' );
    		$shipping_method->process_admin_options();
    
    		WC_Cache_Helper::get_transient_version( 'shipping', true );
    
    		wp_send_json_success(
    			array(
    
  • /includes/class-wc-ajax.php line 3543
    		 * Completes the saving process for options.
    		 *
    		 * @since 7.8.0
    		 */
    		do_action( 'woocommerce_update_options' );
    		$wc_shipping = WC_Shipping::instance();
    
    		wp_send_json_success(
    			array(
    				'shipping_classes' => $wc_shipping->get_shipping_classes(),
    			)
    
  • /includes/class-wc-ajax.php line 3596
    					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();
    			}
    		}
    
    		wp_send_json_error( 'invalid_gateway_id' );
    

See this hook used in plugins: