Checks if the provided fetchpriority is valid.
Parameters
$prioritystring|mixedrequired- Fetch priority.
Source
private function is_valid_fetchpriority( $priority ): bool {
return in_array( $priority, $this->priorities, true );
}
This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.
Checks if the provided fetchpriority is valid.
$prioritystring|mixedrequiredprivate function is_valid_fetchpriority( $priority ): bool {
return in_array( $priority, $this->priorities, true );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.