WP_Script_Modules::is_valid_fetchpriority( string|mixed $priority ): bool

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Checks if the provided fetchpriority is valid.

Parameters

$prioritystring|mixedrequired
Fetch priority.

Return

bool Whether valid fetchpriority.

Source

private function is_valid_fetchpriority( $priority ): bool {
	return in_array( $priority, $this->priorities, true );
}

Changelog

VersionDescription
6.9.0Introduced.

User Contributed Notes

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