woocommerce_settings_api_sanitized_fields_

woocommerce_settings_api_sanitized_fields_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_settings_api_sanitized_fields_') is found 2 times:

  • /includes/abstracts/abstract-wc-settings-api.php line 197
    		}
    
    		$this->settings[ $key ] = $value;
    
    		return update_option( $this->get_option_key(), apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' );
    	}
    
    	/**
    	 * Processes and saves options.
    	 * If there is an error thrown, will continue to save and validate fields, but will leave the erroring field out.
    	 *
    
  • /includes/abstracts/abstract-wc-settings-api.php line 238
    		}
    
    		$option_key = $this->get_option_key();
    		do_action( 'woocommerce_update_option', array( 'id' => $option_key ) ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    		return update_option( $option_key, apply_filters( 'woocommerce_settings_api_sanitized_fields_' . $this->id, $this->settings ), 'yes' ); // phpcs:ignore WooCommerce.Commenting.CommentHooks.MissingHookComment
    	}
    
    	/**
    	 * Add an error message for display in admin on save.
    	 *
    	 * @param string $error Error message.