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.9.3.3

do_action('woocommerce_update_options') is found 9 times:

  • /includes/admin/class-wc-admin-settings.php line 86
     
    			// 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 3075
    		 * 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 3141
    		 * 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 3200
    		 * 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 3368
    		 * 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 3416
    		 * 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 3549
    		 * 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 3602
    					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' );
    
  • /src/Admin/Features/Blueprint/Importers/ImportSetWCPaymentGateways.php line 48
    					$payment_gateway->update_option( $field, $payment_gateway_data->{$field} );
    				}
    			}
    			$result->add_info( "{$id} has been updated." );
    			$this->wp_do_action( 'woocommerce_update_options' );
    		}
    
    		return $result;
    	}
    
    	/**
    

See this hook used in plugins: