print_late_styles

函数
print_late_styles ( No parameters )
返回值
  • (array|void)
定义位置
相关方法
print_admin_stylesprint_emoji_stylesprint_embed_styleswp_print_styleswp_get_layout_style
引入
3.3.0
弃用
-

print_late_styles: 这是WordPress中的一个动作钩子,在所有的样式表都被排队后被触发。它用于打印额外的样式或代码,应该在所有其他样式表之后加载。

打印那些对HTML头来说排队太晚的样式。

function print_late_styles() {
	global $wp_styles, $concatenate_scripts;

	if ( ! ( $wp_styles instanceof WP_Styles ) ) {
		return;
	}

	script_concat_settings();
	$wp_styles->do_concat = $concatenate_scripts;
	$wp_styles->do_footer_items();

	/**
	 * Filters whether to print the styles queued too late for the HTML head.
	 *
	 * @since 3.3.0
	 *
	 * @param bool $print Whether to print the 'late' styles. Default true.
	 */
	if ( apply_filters( 'print_late_styles', true ) ) {
		_print_styles();
	}

	$wp_styles->reset();
	return $wp_styles->done;
}

常见问题

FAQs
查看更多 >
闪电侠

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

2025-12-15 00:36:44

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

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

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