wp_high_priority_element_flag

函数
wp_high_priority_element_flag ( $value = null )
Access
Private
参数
  • (bool) $value Optional. Used to change the static variable. Default null.
    Required:
    Default: null
返回值
  • (bool) Returns true if high-priority element was marked already, otherwise false.
定义位置
相关方法
wp_get_elements_class_namewp_print_community_events_markupwp_print_community_events_templateswp_mediaelement_fallbackwp_recovery_mode_nag
引入
6.3.0
弃用
-

访问一个标志,指示元素是否可能是 ” 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;
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2026-03-16 08:37:45

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: