as_supports()
Check if a specific feature is supported by the current version of Action Scheduler.
No Hooks.
Returns
true|false. True if the feature is supported, false otherwise.
Usage
as_supports( $feature ): bool;
- $feature(string) (required)
- The feature to check support for.
Changelog
| Since 3.9.3 | Introduced. |
as_supports() as supports code WC 10.3.6
function as_supports( string $feature ): bool {
$supported_features = array( 'ensure_recurring_actions_hook' );
return in_array( $feature, $supported_features, true );
}