Automattic\WooCommerce\Admin\RemoteSpecs

DataSourcePoller::set_specs_transient()publicWC 1.0

Set the specs transient.

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

Хуков нет.

Возвращает

null. Ничего (null).

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

$DataSourcePoller = new DataSourcePoller();
$DataSourcePoller->set_specs_transient( $specs, $expiration );
$specs(массив) (обязательный)
The specs to set in the transient.
$expiration(int)
The expiration time for the transient.

Код DataSourcePoller::set_specs_transient() WC 9.7.1

public function set_specs_transient( $specs, $expiration = 0 ) {
	set_transient(
		$this->args['transient_name'],
		$specs,
		$expiration,
	);
}