Automattic\WooCommerce\Internal\PushNotifications\Services
StepLogQuery::get_token_sources
The sources that can name a token: every notification type's own source and the store-wide suppressed source.
Метод класса: StepLogQuery{}
Хуков нет.
Возвращает
string[].
Использование
$result = StepLogQuery::get_token_sources(): array;
Код StepLogQuery::get_token_sources() StepLogQuery::get token sources WC 11.3.0
private static function get_token_sources(): array {
$sources = array_map(
array( NotificationStepLogger::class, 'get_notification_source_for_type' ),
array_keys( Notification::NOTIFICATION_CLASSES )
);
$sources[] = NotificationStepLogger::SUPPRESSED_SOURCE;
return $sources;
}