过滤关系类型的资源提示的域和URL。
原型
apply_filters( 'wp_resource_hints', array $urls, string $relation_type )
参数
$urls
(array)
要打印资源提示的URL。
$relation_type
(string)
打印URL的关系类型,例如’preconnect’或’prerender’。
源文件
路径:wp-includes/general-template.php
其他
英文文档:https://developer.wordpress.org/reference/hooks/wp_resource_hints/