wp_head()で加わる中から不要な要素を削除する

Ads

Code

<?php
remove_action( 'wp_head', 'feed_links_extra', 3 );
remove_action( 'wp_head', 'feed_links', 2 );
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', 'adjacent_posts_rel_link_wp_head', 10, 0 );
remove_action( 'wp_head', 'wp_generator' );
?>
view raw gistfile1.aw hosted with ❤ by GitHub

Note

Description functions.phpに追記。wp_head()でhead内に加わるmetaやlinkタグを削除する。内容は各々確認する事。
WordPress Ver. 3.3.1
Via