woocommerce_settings_save_

woocommerce_settings_save_

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_settings_save_') is found 2 times:

  • /includes/admin/class-wc-admin-settings.php line 77
     
    			check_admin_referer( 'woocommerce-settings' );
    
    			// 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();
    
    
  • /includes/admin/settings/class-wc-settings-tax.php line 320
    	/**
    	 * Save tax rates.
    	 */
    	public function save_tax_rates() {
    		// phpcs:disable WordPress.Security.NonceVerification.Missing -- this is called via "do_action('woocommerce_settings_save_'...") in base class, where nonce is verified first.
    		global $wpdb;
    
    		$current_class = sanitize_title( self::get_current_tax_class() );
    		// phpcs:ignore WordPress.Security.ValidatedSanitizedInput.InputNotValidated, WordPress.Security.NonceVerification.Missing
    		$posted_countries = wc_clean( wp_unslash( $_POST['tax_rate_country'] ) );
    
    

See this hook used in plugins: