wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_high_priority_element_flag › WordPress Function

Since6.3.0
Deprecatedn/a
wp_high_priority_element_flag ( $value = null )
Access:
  • private
Parameters:
  • (bool) $value Optional. Used to change the static variable. Default null.
    Required: No
    Default: null
Returns:
  • (bool) Returns true if high-priority element was marked already, otherwise false.
Defined at:
Codex:

Accesses a flag that indicates if an element is a possible candidate for `fetchpriority='high'`.



Source

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;
}