{"id":1105,"date":"2012-06-17T01:34:18","date_gmt":"2012-06-16T17:34:18","guid":{"rendered":"https:\/\/blog.rexdf.org\/?p=1080"},"modified":"2012-06-17T01:34:18","modified_gmt":"2012-06-16T17:34:18","slug":"%e7%b2%be%e7%ae%80wp_head","status":"publish","type":"post","link":"https:\/\/blog.rexdf.org\/ja\/2012\/06\/%e7%b2%be%e7%ae%80wp_head\/","title":{"rendered":"\u7cbe\u7b80wp_head()"},"content":{"rendered":"<p>\u5728function\u52a0\u5165\u5982\u4e0b\u4ee3\u7801\uff1a<\/p>\n<pre class=\"brush: php; gutter: true; first-line: 1; highlight: []; html-script: false\">\n&lt;?php\n\/\/remove_action( &#039;wp_head&#039;, &#039;wp_enqueue_scripts&#039;, 1 );\nremove_action( &#039;wp_head&#039;, &#039;feed_links&#039;, 2 );\nremove_action( &#039;wp_head&#039;, &#039;feed_links_extra&#039;, 3 );\nremove_action( &#039;wp_head&#039;, &#039;rsd_link&#039; );\nremove_action( &#039;wp_head&#039;, &#039;wlwmanifest_link&#039; );\nremove_action( &#039;wp_head&#039;, &#039;index_rel_link&#039; );\nremove_action( &#039;wp_head&#039;, &#039;parent_post_rel_link&#039;, 10, 0 );\nremove_action( &#039;wp_head&#039;, &#039;start_post_rel_link&#039;, 10, 0 );\nremove_action( &#039;wp_head&#039;, &#039;adjacent_posts_rel_link_wp_head&#039;, 10, 0 );\n\/\/remove_action( &#039;wp_head&#039;, &#039;locale_stylesheet&#039; );\nremove_action( &#039;publish_future_post&#039;, &#039;check_and_publish_future_post&#039;, 10, 1 );\n\/\/remove_action( &#039;wp_head&#039;, &#039;noindex&#039;, 1 );\n\/\/remove_action( &#039;wp_head&#039;, &#039;wp_print_styles&#039;, 8 );\n\/\/remove_action( &#039;wp_head&#039;, &#039;wp_print_head_scripts&#039;, 9 );\nremove_action( &#039;wp_head&#039;, &#039;wp_generator&#039; );\n\/\/remove_action( &#039;wp_head&#039;, &#039;rel_canonical&#039; );\nremove_action( &#039;wp_footer&#039;, &#039;wp_print_footer_scripts&#039; );\nremove_action( &#039;wp_head&#039;, &#039;wp_shortlink_wp_head&#039;, 10, 0 );\nremove_action( &#039;template_redirect&#039;, &#039;wp_shortlink_header&#039;, 11, 0 );\nadd_action(&#039;widgets_init&#039;, &#039;my_remove_recent_comments_style&#039;);\nfunction my_remove_recent_comments_style() {\nglobal $wp_widget_factory;\nremove_action(&#039;wp_head&#039;, array($wp_widget_factory-&gt;widgets[&#039;WP_Widget_Recent_Comments&#039;], &#039;recent_comments_style&#039;));\n}\n?&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u5728function\u52a0\u5165\u5982\u4e0b\u4ee3\u7801\uff1a &lt;?php \/\/remove_actio &hellip; <a href=\"https:\/\/blog.rexdf.org\/ja\/2012\/06\/%e7%b2%be%e7%ae%80wp_head\/\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[18],"tags":[87],"class_list":["post-1105","post","type-post","status-publish","format-standard","hentry","category-program","tag-wp_head"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/1105","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/comments?post=1105"}],"version-history":[{"count":0,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/posts\/1105\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/media?parent=1105"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/categories?post=1105"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.rexdf.org\/ja\/wp-json\/wp\/v2\/tags?post=1105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}