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