wp_high_priority_element_flag()
Accesses a flag that indicates if an element is a possible candidate for fetchpriority='high'.
Внутренняя функция — эта функция рассчитана на использование самим ядром. Не рекомендуется использовать эту функцию в своем коде.
Хуков нет.
Возвращает
true|false
. Returns true if high-priority element was marked already, otherwise false.
Использование
wp_high_priority_element_flag( $value );
- $value(true|false)
- Used to change the static variable.
По умолчанию: null
Список изменений
С версии 6.3.0 | Введена. |
Код wp_high_priority_element_flag() wp high priority element flag WP 6.7.1
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; }