Automattic\WooCommerce\Admin
DataSourcePoller::merge_specs()
Merge the specs.
Метод класса: DataSourcePoller{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->merge_specs( $specs_to_merge_in, $specs, $url );
- $specs_to_merge_in(Array) (обязательный)
- The specs to merge in to $specs.
- $specs(Array) (обязательный) (передается по ссылке — &)
- The list of specs being merged into.
- $url(строка) (обязательный)
- The url of the feed being merged in (for error reporting).
Код DataSourcePoller::merge_specs() DataSourcePoller::merge specs WC 8.7.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; } }