WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

Automattic\WooCommerce\Admin\RemoteInboxNotifications

DataSourcePoller::read_specs_from_data_sources() public WC 1.0

Reads the data sources for specs and persists those specs.

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

Хуки из метода
Возвращает

true|false. Whether any specs were read.

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

$result = DataSourcePoller::read_specs_from_data_sources();

Код DataSourcePoller::read_specs_from_data_sources() WC 5.7.1

public static function read_specs_from_data_sources() {
	$specs        = array();
	$data_sources = apply_filters( 'woocommerce_admin_remote_inbox_data_sources', self::DATA_SOURCES );

	// Note that this merges the specs from the data sources based on the
	// slug - last one wins.
	foreach ( $data_sources as $url ) {
		$specs_from_data_source = self::read_data_source( $url, $specs );
		self::merge_specs( $specs_from_data_source, $specs, $url );
	}

	// Persist the specs as an option.
	update_option(
		RemoteInboxNotificationsEngine::SPECS_OPTION_NAME,
		$specs,
		false
	);

	return 0 !== count( $specs );
}