wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



wp_high_priority_element_flag › WordPress Function

Seit6.3.0
Veraltetn/v
wp_high_priority_element_flag ( $value = null )
Zugriff:
  • private
Parameter:
  • (bool) $value Optional. Used to change the static variable. Default null.
    Erforderlich: Nein
    Standard: null
Gibt zurück:
  • (bool) Returns true if high-priority element was marked already, otherwise false.
Definiert in:
Codex:

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



Quellcode

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