WP_Speculation_Rules::is_valid_source( string $source ): bool

In this article

Checks whether the given speculation rules source is valid.

Parameters

$sourcestringrequired
Speculation rules source.

Return

bool True if valid, false otherwise.

Source

public static function is_valid_source( string $source ): bool {
	return isset( self::$source_allowlist[ $source ] );
}

Changelog

VersionDescription
6.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.