Automattic\WooCommerce\Admin\RemoteInboxNotifications

RemoteInboxNotificationsDataSourcePoller::read_specs_from_data_sources │ public │ WC 11.3.0

Read the data sources and record the identities published by the canonical WooCommerce.com feed.

Invalid specs with usable slugs still count as published. An inconclusive response retains only its timestamp to reject older reads.

Method of the class: RemoteInboxNotificationsDataSourcePoller{}

No Hooks.

Returns

bool. Whether any specs were read.

Usage

$RemoteInboxNotificationsDataSourcePoller = new RemoteInboxNotificationsDataSourcePoller();
$RemoteInboxNotificationsDataSourcePoller->read_specs_from_data_sources();

Changelog

Since 11.3.0 Introduced.

RemoteInboxNotificationsDataSourcePoller::read_specs_from_data_sources() code WC 11.3.0

public function read_specs_from_data_sources() {
	$fetched_at            = time();
	$this->published_slugs = null;

	$result = parent::read_specs_from_data_sources();

	$this->save_published_snapshot( $fetched_at, $this->published_slugs );

	return $result;
}