{"id":85436,"date":"2010-11-29T08:00:00","date_gmt":"2010-11-29T08:00:00","guid":{"rendered":"https:\/\/www.weixiaoduo.com\/plugins\/2024\/02\/22\/hide-comments-feature\/"},"modified":"2012-10-24T22:48:00","modified_gmt":"2012-10-24T22:48:00","slug":"hide-comments-feature","status":"publish","type":"post","link":"https:\/\/www.weixiaoduo.com\/plugins\/hide-comments-feature\/","title":{"rendered":"Hide Comments Feature"},"content":{"rendered":"<p>For those who do not need to have the Comments feature in WordPress (there are a lot of reasons), this plugin removes any trace of that existence in both wp-admin and front-end.<br \/>\nYour theme must rely properly on the WordPress API for the front-end support. The tag  must be present.<br \/>\nCompletely done through techniques based on both action hooks and CSS.<\/p>\n<p>Doesn\u2019t requires any configuration, just install and any trace of Comments will disappear.<\/p>\n<p>NOTE: This does NOT play with the core, so you are able to update both plugins and WordPress without any trouble.<\/p>\n<h4>Provided Custom Hooks<\/h4>\n<p>This plugin provides 4 custom hooks you may play if you need more substance in your theme.<\/p>\n<pre><code>add_action( 'hide_comments_post_types', 'my_hide_comments_post_types' ); to change the list of post types to be processed by the plugin. Comments will be removed from all listed post types.\nadd_action( 'hide_comments_css', 'my_hide_comments_css' ); to add arbitrary CSS to hide comment's stuff from your theme.\nadd_action( 'hide_comments_template_comments_path', 'my_hide_comments_template_comments_path' ); the default path is the empty file template-comments.php located in the same dir of this plugin. Just modify the path to your own file if you want to return anything else.\nadd_action( 'hide_comments_dashboard_right_now', 'my_hide_comments_dashboard_right_now' ); if true is returned, the discussion table of dashboard right now widget will be hidden. False otherwise. Defaults to true.\n<\/code><\/pre>\n<p>The use of these hooks are recommended, thus, if the plugin gets deactivated, those hooks will not be called anymore and then you get things consistent and clean.<\/p>\n<p>Do you want to translate it to your language? Just reply to the \u00abTranslations\u00bb topic in the forum.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remove comments functionality and related in your Wordpress instance.<\/p>\n","protected":false},"author":65,"featured_media":289143,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Hide Comments Feature - \u8587\u6653\u6735\u63d2\u4ef6\u76ee\u5f55","description":"Remove comments functionality and related in your Wordpress instance."},"footnotes":""},"categories":[1],"tags":[32,124,1386,2670],"class_list":["post-85436","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-comment","tag-comments","tag-hide","tag-remove"],"_links":{"self":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/85436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/users\/65"}],"replies":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/comments?post=85436"}],"version-history":[{"count":0,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/posts\/85436\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media\/289143"}],"wp:attachment":[{"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/media?parent=85436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/categories?post=85436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.weixiaoduo.com\/plugins\/wp-json\/wp\/v2\/tags?post=85436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}