WordPress如何移除Meta中的Post信息

追格官方小助手/ 2022年08月12日/ WordPress/ 浏览 1390

WordPress如何移除 Meta 中的 Post 信息,我们只需在当前WordPress主题的 functions.php 文件中插入下面这段代码即可。


remove_action( 'wp_head', 'index_rel_link' ); 
remove_action( 'wp_head', 'parent_post_rel_link', 10, 0 ); 
remove_action( 'wp_head', 'start_post_rel_link', 10, 0 ); 
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10, 0 ); 


相关推荐:
1、WordPress如何移除RSD 和 wlwmanifest
2、WordPress如何移除离线编辑器端口和加载DNS
3、如何彻底移除并关闭WordPress的RSS feed

发表评论

暂无评论,抢个沙发...

客服 工单