WordPress at Your Fingertips
function is not described

Automattic\WooCommerce\Admin

DataSourcePoller::get_specs_from_data_sources() public WC 1.0

Reads the data sources for specs and persists those specs.

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

Hooks from the method

Return

Array. list of specs.

Usage

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

Code of DataSourcePoller::get_specs_from_data_sources() WC 6.1.0

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();
}