Checks whether the given speculation rules mode is valid.
Parameters
$mode
stringrequired- Speculation rules mode.
Source
public static function is_valid_mode( string $mode ): bool {
return isset( self::$mode_allowlist[ $mode ] );
}
Changelog
Version | Description |
---|---|
6.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.