wpseek.com
Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_high_priority_element_flag › WordPress Function

Desde6.3.0
Obsoleton/a
wp_high_priority_element_flag ( $value = null )
Acesso:
  • private
Parâmetros:
  • (bool) $value Optional. Used to change the static variable. Default null.
    Required: No
    Padrão: null
Retorna:
  • (bool) Returns true if high-priority element was marked already, otherwise false.
Definido em:
Codex:

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



Fonte

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