WordPress如何移除离线编辑器端口和加载DNS,我们只需将以下代码放到当前WordPress主题 functions.php 中即可。
1、WordPress移除离线编辑器端口
remove_action( 'wp_head', 'rsd_link' );
remove_action( 'wp_head', 'wlwmanifest_link' );
2、WordPress移除加载DNS
function remove_dns_prefetch( $hints, $relation_type ) {
if ( 'dns-prefetch' === $relation_type ) {
return array_diff( wp_dependencies_unique_hosts(), $hints );
}
return $hints;
}
add_filter( 'wp_resource_hints', 'remove_dns_prefetch', 10, 2 );
-
WordPress函数:wp_list_comments 显示评论列表WordPress如何显示评论列表
-
WordPress函数:previous_comments_link 显示到上一个评论页面的链接。WordPress如何显示到上一个评论页面的链接。
-
WordPress函数:get_previous_comments_link 获取上一个评论的链接WordPress如何获取上一个评论的链接
-
WordPress函数:paginate_comments_links 文章评论的分页WordPress文章评论的分页
-
追格主题首页右侧小工具设置方法追格主题的首页右边栏小工具抛弃了WordPress传统的设置方法,全部集成到主题设置中,无需到“外观-小工具”中设置。
-
追格主题(WordPress资源下载主题,资讯主题)注册登录和找回密码的设置方法追格主题注册登录和找回密码的设置方法其实比较简单,可能有些小伙对找回密码这块比较迷茫,今天我们简单说说如何设置。
暂无评论,抢个沙发...