//WordPressのバージョン情報を非表示 remove_action('wp_head', 'wp_generator'); //フィードへのリンクを非表示 remove_action('wp_head', 'feed_links', 2); remove_action('wp_head', 'feed_links_extra', 3); //ブログ編集ツールからの投稿を無効 remove_action('wp_head', 'rsd_link'); //Windows Live Writeからの投稿を無効 remove_action('wp_head', 'wlwmanifest_link'); //ページネーションprev/nextを非表示 remove_action('wp_head', 'adjacent_posts_rel_link_wp_head'); //記事のショートリンクを非表示 remove_action('wp_head', 'wp_shortlink_wp_head'); // recentcommentsインラインスタイル削除 function remove_recent_comments_style() { global $wp_widget_factory; remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) ); } add_action( 'widgets_init', 'remove_recent_comments_style' );