Automattic\WooCommerce\Admin

DataSourcePoller::get_specs_from_data_sources()publicWC 1.0

Reads the data sources for specs and persists those specs.

{} Это метод класса: DataSourcePoller{}

Хуки из метода

Возвращает

Массив. list of specs.

Использование

$DataSourcePoller = new DataSourcePoller();
$DataSourcePoller->get_specs_from_data_sources();

Код DataSourcePoller::get_specs_from_data_sources() WC 6.6.1

public function get_specs_from_data_sources() {
	$specs = get_transient( $this->args['transient_name'] );

	if ( false === $specs || ! is_array( $specs ) || 0 === count( $specs ) ) {
		$this->read_specs_from_data_sources();
		$specs = get_transient( $this->args['transient_name'] );
	}
	$specs = apply_filters( self::FILTER_NAME_SPECS, $specs, $this->id );
	return false !== $specs ? $specs : array();
}