Automattic\WooCommerce\Internal\CLI\Migrator\Platforms\Webflow

WebflowMapper::should_processprivateWC 1.0

Should this field be processed?

Method of the class: WebflowMapper{}

No Hooks.

Returns

true|false.

Usage

// private - for code of main (parent) class only
$result = $this->should_process( $field_key ): bool;
$field_key(string) (required)
The field key.

WebflowMapper::should_process() code WC 11.0.0

private function should_process( string $field_key ): bool {
	if ( empty( $this->fields_to_process ) ) {
		return true;
	}
	return in_array( $field_key, $this->fields_to_process, true );
}