wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_high_priority_element_flag › WordPress Function

Od6.3.0
Przestarzałyn/a
wp_high_priority_element_flag ( $value = null )
Dostęp:
  • private
Parametry:
  • (bool) $value Optional. Used to change the static variable. Default null.
    Wymagane: Nie
    Domyślny: null
Powrót:
  • (bool) Returns true if high-priority element was marked already, otherwise false.
Zdefiniowane na:
Codex:

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



Źródło

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