Automattic\WooCommerce\Admin\RemoteSpecs

DataSourcePoller::set_specs_transient()publicWC 1.0

Set the specs transient.

Method of the class: DataSourcePoller{}

No Hooks.

Return

null. Nothing (null).

Usage

$DataSourcePoller = new DataSourcePoller();
$DataSourcePoller->set_specs_transient( $specs, $expiration );
$specs(array) (required)
The specs to set in the transient.
$expiration(int)
The expiration time for the transient.

DataSourcePoller::set_specs_transient() code WC 9.0.1

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