WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin

DataSourcePoller::merge_specs() protected WC 1.0

Merge the specs.

{} It's a method of the class: DataSourcePoller{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->merge_specs( $specs_to_merge_in, $specs, $url );
$specs_to_merge_in(Array) (required)
The specs to merge in to $specs.
$specs(Array) (required) (passed by reference — &)
The list of specs being merged into.
$url(string) (required)
The url of the feed being merged in (for error reporting).

Code of DataSourcePoller::merge_specs() WC 6.1.0

protected function merge_specs( $specs_to_merge_in, &$specs, $url ) {
	foreach ( $specs_to_merge_in as $spec ) {
		if ( ! $this->validate_spec( $spec, $url ) ) {
			continue;
		}

		$id           = $this->get_spec_key( $spec );
		$specs[ $id ] = $spec;
	}
}