wp_high_priority_element_flag

The timeline below displays how wordpress function wp_high_priority_element_flag has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.3

/**
 * Accesses a flag that indicates if an element is a possible candidate for `fetchpriority='high'`.
 *
 * @since 6.3.0
 * @access private
 *
 * @param bool $value Optional. Used to change the static variable. Default null.
 * @return bool Returns true if high-priority element was marked already, otherwise false.
 */
function wp_high_priority_element_flag($value = null)
{
    static $high_priority_element = true;
    if (is_bool($value)) {
        $high_priority_element = $value;
    }
    return $high_priority_element;
}