带病投保、无健康告知保险汇总

Wordpress移除不必要的头部信息

Function代码

// 移除不必要的头部信息,by minirizhi.com
remove_action( 'wp_head', 'feed_links', 2 ); //移除feed
remove_action( 'wp_head', 'feed_links_extra', 3 ); //移除feed
remove_action( 'wp_head', 'rsd_link' ); //移除离线编辑器开放接口
remove_action( 'wp_head', 'wlwmanifest_link' ); //移除离线编辑器开放接口
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', 'wp_generator' ); //移除WordPress版本
remove_action( 'wp_head', 'adjacent_posts_rel_link_wp_head', 10);
remove_action( 'wp_head', 'wp_shortlink_wp_head', 10, 0 ); //删除 head 中的 shortlink
remove_action( 'wp_head', 'rest_output_link_wp_head', 10); // 删除头部输出 WP RSET API 地址
remove_action( 'template_redirect','wp_shortlink_header', 11); //禁止短链接 Header 标签。
remove_action( 'template_redirect', 'rest_output_link_header', 11); // 禁止输出 Header Link 标签。

文章目录
扫码了解详情