wpseek.com
WordPress开发者和主题制作者的搜索引擎



wp_high_priority_element_flag › WordPress Function

Since6.3.0
已弃用n/a
wp_high_priority_element_flag ( $value = null )
访问:
  • private
参数:
  • (bool) $value Optional. Used to change the static variable. Default null.
    Required: No
    默认: null
返回:
  • (bool) Returns true if high-priority element was marked already, otherwise false.
定义在:
文档:

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



源码

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