Automattic\WooCommerce\Admin\Features\Blueprint\Importers

ImportSetWCShipping::post_process_shipping_methods()protectedWC 1.0

Post process shipping methods.

Method of the class: ImportSetWCShipping{}

No Hooks.

Return

null. Nothing (null).

Usage

// protected - for code of main (parent) or child class
$result = $this->post_process_shipping_methods( $methods );
$methods(array) (required)
The shipping methods.

ImportSetWCShipping::post_process_shipping_methods() code WC 9.7.1

protected function post_process_shipping_methods( $methods ) {
	foreach ( $methods as $method ) {
		if ( isset( $method->settings ) ) {
			update_option( $method->option_name, $method->option_value );
		}
	}
}