as_supports() │ WC 3.9.3

Check if a specific feature is supported by the current version of Action Scheduler.

Хуков нет.

Возвращает

bool. True if the feature is supported, false otherwise.

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

as_supports( $feature ): bool;
$feature(строка) (обязательный)
The feature to check support for.

Список изменений

С версии 3.9.3 Введена.

Код as_supports() WC 11.2.2

function as_supports( string $feature ): bool {
	$supported_features = array( 'ensure_recurring_actions_hook' );

	return in_array( $feature, $supported_features, true );
}