{"id":11879,"date":"2026-03-03T05:34:56","date_gmt":"2026-03-03T05:34:56","guid":{"rendered":"https:\/\/www.woohelpdesk.com\/blog\/?p=11879"},"modified":"2026-03-03T10:33:53","modified_gmt":"2026-03-03T10:33:53","slug":"how-to-disable-comments-and-pings-in-wordpress","status":"publish","type":"post","link":"https:\/\/www.woohelpdesk.com\/blog\/how-to-disable-comments-and-pings-in-wordpress\/","title":{"rendered":"How to Disable Comments and Pings in WordPress (Site-Wide, Attachments, Admin, and Code)"},"content":{"rendered":"<h2>Table of Contents<\/h2>\n<ul>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ul>\n<ul>\n<li><a href=\"#section-1\">Introduction<\/a><\/li>\n<li><a href=\"#section-2\">What You\u2019re Turning Off (Comments vs Pings)<\/a><\/li>\n<li><a href=\"#section-3\">Before You Start (Quick Safety Checks)<\/a><\/li>\n<li><a href=\"#section-4\">Turn Off Comments and Pings for New Content (Site-Wide Defaults)<\/a><\/li>\n<li><a href=\"#section-5\">What These Settings Do Not Change<\/a><\/li>\n<li><a href=\"#section-6\">Mini Checklist Before Moving to Next Step<\/a><\/li>\n<li><a href=\"#section-7\">Disable Comments on Existing Posts and Media Attachments<\/a><\/li>\n<li><a href=\"#section-8\">Disable Comments on Media Attachments and Attachment Pages<\/a><\/li>\n<li><a href=\"#section-9\">Remove Comment Areas From WordPress Admin (Dashboard + Menus)<\/a><\/li>\n<li><a href=\"#section-10\">Verify Everything Is Disabled (Checklist + Common Surprises)<\/a><\/li>\n<li><a href=\"#section-11\">Disable Comments and Pings in WordPress Programmatically (Code Method)<\/a><\/li>\n<li><a href=\"#section-12\">Conclusion<\/a><\/li>\n<li><a href=\"#section-13\">FAQs<\/a><\/li>\n<\/ul>\n<h2 id=\"section-1\">Introduction<\/h2>\n<p>Spam and noise can make WordPress comments hard to manage. Many site owners also want fewer links from ping features. This guide shows safe ways to disable comments in WordPress.<\/p>\n<p>Short answer: Use Discussion settings for new content, then bulk edit. If you need full control, add a small code snippet. You will also learn how to stop pings across your site.<\/p>\n<p>You can disable comments for posts, pages, and attachment areas. You can also remove comment tools from the admin screens. The steps in this guide are safe and easy to follow. You can reverse most changes if you need comments later.<\/p>\n<h2 id=\"section-2\">What You\u2019re Turning Off (Comments vs Pings)<\/h2>\n<p>Comments are messages visitors leave under posts and pages. Pings include pingbacks and trackbacks that notify other sites. They often attract spam when your content links out. When you disable pingbacks and trackbacks WordPress stops accepting them.<\/p>\n<p>Disabling does not delete comments already stored in your database. Those can stay visible unless you change display behavior. On busy sites, disabling reduces moderation time and spam risk. It also keeps internal pages cleaner for visitors and staff.<\/p>\n<p>Disabling can apply to new content, or to existing items. Some themes also show comment areas on attachment pages. That is why we cover posts, media, admin, and code.<\/p>\n<h2 id=\"section-3\">Before You Start (Quick Safety Checks)<\/h2>\n<p>Start with a quick backup, even for small setting changes. Use a staging site if your host provides one. Next, check whether your theme forces comments in templates. Also note any plugins that add reviews or comment boxes. After updates, clear cache so you see the real result. If you manage clients, tell editors what will change.<\/p>\n<p>Before you change anything, confirm these simple goals:<\/p>\n<ul>\n<li>Do you want to stop new comments, or hide all UI?<\/li>\n<li>Do you need comments on products, but not on pages?<\/li>\n<li>Do you want to keep old comments visible, or remove them?<\/li>\n<\/ul>\n<p>Once you decide, the next steps will be faster.<\/p>\n<h2 id=\"section-4\">Turn Off Comments and Pings for New Content (Site-Wide Defaults)<\/h2>\n<p>If you want fewer tasks, start with default settings first. This method helps you disable comments WordPress site wide for new posts. It also helps you stop pings before they create spam. These settings are built into WordPress and are safe. They do not need extra tools or any coding.<\/p>\n<p><strong>Step 1: Open the Discussion Settings in WordPress<\/strong><\/p>\n<p>Go to your WordPress admin area and follow this path. You can do this in one minute on most sites.<\/p>\n<ul>\n<li>Go to <strong>Settings<\/strong> in the left menu.<\/li>\n<li>Click <strong>Discussion<\/strong>.<\/li>\n<li>Scroll to the section called <strong>Default post settings<\/strong>.<\/li>\n<\/ul>\n<p>These options control what happens for new posts and pages. They also affect some custom content types on many sites.<\/p>\n<p><strong>Step 2: Disable Comments for New Posts and Pages<\/strong><\/p>\n<p>To stop new comments, you must turn off the comment option here. This is the easiest way to disable comments in WordPress by default.<\/p>\n<p>In <strong>Default post settings<\/strong>, uncheck this option:<\/p>\n<ul>\n<li><strong>Allow people to submit comments on new posts<\/strong><\/li>\n<\/ul>\n<p>After you uncheck it, WordPress will stop enabling comments by default. New posts will not show the comment form on most themes. New pages will also follow this setting in many setups. This is a core step for anyone wanting less moderation work.<\/p>\n<p><strong>Step 3: Disable Pingbacks and Trackbacks for New Content<\/strong><\/p>\n<p>Pings are not the same as comments, but they feel similar. They create entries that look like comments on many themes. They also bring spam and fake link notices. Use this option to stop pings on new content.<\/p>\n<p>In <strong>Default post settings<\/strong>, uncheck this option:<\/p>\n<ul>\n<li><strong>Attempt to notify any blogs linked to from the post<\/strong><\/li>\n<\/ul>\n<p>Then find this option and uncheck it too:<\/p>\n<ul>\n<li><strong>Allow link notifications from other blogs (pingbacks and trackbacks)<\/strong><\/li>\n<\/ul>\n<p>This is the key place to disable pingbacks and trackbacks WordPress uses. Once disabled, new posts will not accept pingbacks. New posts will also stop sending trackback style notices.<\/p>\n<p><strong>Step 4: Save Changes and Confirm the Defaults<\/strong><\/p>\n<p>Now scroll to the bottom of the Discussion page and click:<\/p>\n<ul>\n<li><strong>Save Changes<\/strong><\/li>\n<\/ul>\n<p>After saving, test the result with a quick check. Create a draft post and open the editor settings. Look for the \u201cDiscussion\u201d panel if your editor shows it. On many sites, it will now show comments are off by default. You can also preview the draft to confirm no comment form appears.<\/p>\n<h2 id=\"section-5\">What These Settings Do Not Change<\/h2>\n<p>This part is important, especially for older websites. These settings mainly control future content. They often do not update older posts automatically. If you need to disable older comments too, that comes next. That is where bulk actions help.<\/p>\n<p>Here is what to expect after this step:<\/p>\n<ul>\n<li>New posts usually have comments turned off automatically.<\/li>\n<li>New posts usually have pings turned off automatically.<\/li>\n<li>Older posts may still allow comments and pings.<\/li>\n<li>Some themes may still show comment areas in templates.<\/li>\n<\/ul>\n<h2 id=\"section-6\">Mini Checklist Before Moving to Next Step<\/h2>\n<p>Use this small checklist to avoid confusion later. It will also help you follow the next steps faster.<\/p>\n<ul>\n<li>Check one new draft post for the comment form.<\/li>\n<li>Check one new draft post for ping settings in \u201cDiscussion.\u201d<\/li>\n<li>Clear any cache plugin, server cache, or CDN cache.<\/li>\n<li>Note any custom post types that still show comment options.<\/li>\n<\/ul>\n<p>This completes the base setup for defaults. You have now started to disable comments WordPress site wide for new content.<\/p>\n<h2 id=\"section-7\">Disable Comments on Existing Posts and Media Attachments<\/h2>\n<p>Now you must fix older content too. This is where many sites still show comment forms. You can handle this without editing each post manually. You can also handle attachment pages that still allow discussion.<\/p>\n<p><strong>Close Comments on Existing Posts and Pages in Bulk<\/strong><\/p>\n<p>Older posts may still accept comments after setting changes. You need a bulk update for the whole library. This is the easiest way to disable comments on all posts WordPress sites already have.<\/p>\n<p><strong>Step 1: Bulk Disable Comments for Existing Posts<\/strong><\/p>\n<p>Go to your WordPress dashboard and open your post list. Then use the bulk edit tool to close comments on many posts.<\/p>\n<ul>\n<li>Go to <strong>Posts \u2192 All Posts<\/strong>.<\/li>\n<li>Use the <strong>Screen Options<\/strong> to show more items per page.<\/li>\n<li>Select all posts using the top checkbox.<\/li>\n<li>Choose <strong>Bulk actions \u2192 Edit<\/strong>.<\/li>\n<li>Click <strong>Apply<\/strong>.<\/li>\n<\/ul>\n<p>Now you will see the bulk edit panel. Look for the discussion controls. On many sites you will see \u201cComments\u201d as an option. Set it to <strong>Do not allow<\/strong> and update.<\/p>\n<ul>\n<li>Set <strong>Comments<\/strong> to <strong>Do not allow<\/strong>.<\/li>\n<li>Click <strong>Update<\/strong> to save changes.<\/li>\n<\/ul>\n<p>Repeat this for every page of posts if needed. This method is fast and safe for large sites.<\/p>\n<p><strong>Step 2: Bulk Disable Comments for Existing Pages<\/strong><\/p>\n<p>Pages can also show comment forms on some themes. If your pages should stay clean, repeat the same process.<\/p>\n<ul>\n<li>Go to <strong>Pages \u2192 All Pages<\/strong>.<\/li>\n<li>Select all pages using the top checkbox.<\/li>\n<li>Choose <strong>Bulk actions \u2192 Edit<\/strong>.<\/li>\n<li>Click <strong>Apply<\/strong>.<\/li>\n<li>Set <strong>Comments<\/strong> to <strong>Do not allow<\/strong>.<\/li>\n<li>Click <strong>Update<\/strong>.<\/li>\n<\/ul>\n<p>This is the best approach if you want disable comments WordPress without plugin. You only use core WordPress tools and settings.<\/p>\n<p><strong>Step 3: Disable Pingbacks on Existing Posts Too<\/strong><\/p>\n<p>Some older posts may still accept pingbacks and trackbacks. These can appear like comment entries on your pages. Use bulk edit again to stop them.<\/p>\n<p>In the bulk edit panel, look for the ping setting. Some sites show it as \u201cPings\u201d or \u201cTrackbacks.\u201d Set it to <strong>Do not allow<\/strong> when available. This helps you disable pingbacks on existing posts WordPress already published.<\/p>\n<p>If you do not see the option, do not worry. Many setups hide it by default.<\/p>\n<h2 id=\"section-8\">Disable Comments on Media Attachments and Attachment Pages<\/h2>\n<p>Media files can create attachment pages in WordPress. Some themes link images to these pages by default. These pages may show a title, image, and comment area. That is why many users need to disable comments on media attachments WordPress sites store.<\/p>\n<p><strong>Why Attachment Pages Still Show Comments<\/strong><\/p>\n<p>Attachment pages behave like a content type in WordPress. They can have their own discussion settings. A theme may also include a comments template on attachment layouts. This is common on older themes and blog-focused designs.<\/p>\n<p>If you want a clean experience, you should also disable comments on attachment pages WordPress generates for images and files.<\/p>\n<p><strong>Step 1: Check If Your Site Uses Attachment Pages<\/strong><\/p>\n<p>First, confirm if attachment pages are active on your site. Open an older post and click an image if it links anywhere. If it opens a new page with the image, you are on an attachment page.<\/p>\n<p>You can also check from the Media Library:<\/p>\n<ul>\n<li>Go to <strong>Media \u2192 Library<\/strong>.<\/li>\n<li>Click an image and choose <strong>Edit more details<\/strong>.<\/li>\n<li>Look for an attachment URL and open it.<\/li>\n<\/ul>\n<p>If that page shows a comment form or comment count, you should disable discussion there.<\/p>\n<p><strong>Step 2: Disable Comments on Individual Attachments When Needed<\/strong><\/p>\n<p>WordPress does not always offer a perfect bulk tool for attachments. Many sites need a simple workflow for important images first. Start with attachments that get traffic or show in search results.<\/p>\n<p>Use this method for key attachment items:<\/p>\n<ul>\n<li>Go to <strong>Media \u2192 Library<\/strong>.<\/li>\n<li>Click an image and open <strong>Edit more details<\/strong>.<\/li>\n<li>Find the <strong>Discussion<\/strong> panel if visible.<\/li>\n<li>Uncheck <strong>Allow comments<\/strong>.<\/li>\n<li>Update or save if your screen shows a save option.<\/li>\n<\/ul>\n<p>If you do not see \u201cDiscussion,\u201d the editor may hide it. Click <strong>Screen Options<\/strong> at the top and enable \u201cDiscussion\u201d if available.<\/p>\n<p><strong>Step 3: Prevent Future Attachment Comment Issues<\/strong><\/p>\n<p>Attachment pages can keep causing problems if themes link to them. While we will covers code-level control, you can reduce issues now.<\/p>\n<p>Do these quick checks:<\/p>\n<ul>\n<li>Set image links to <strong>None<\/strong> in the block editor.<\/li>\n<li>Avoid linking images to \u201cMedia File\u201d or \u201cAttachment Page.\u201d<\/li>\n<li>Use a lightbox plugin only if you truly need it.<\/li>\n<\/ul>\n<p>This reduces visits to attachment pages and lowers comment exposure.<\/p>\n<h2 id=\"section-9\">Remove Comment Areas From WordPress Admin (Dashboard + Menus)<\/h2>\n<p>Even after disabling comments, the admin can still show comment tools. You may still see the Comments menu and dashboard widgets. Cleaning these makes the backend look more focused. This also helps when you want to remove comments from WordPress dashboard screens.<\/p>\n<p><strong>Step 1: Hide the Comments Menu for Non-Admin Users<\/strong><\/p>\n<p>If your site has multiple users, restrict comment access first. Use role settings or plugin-based role control if you already use one. If you do not use role tools, you can still hide items visually. Hiding is not the same as disabling, but it helps.<\/p>\n<p>Here are simple admin steps you can do now:<\/p>\n<ul>\n<li>Go to <strong>Users \u2192 All Users<\/strong> and review roles.<\/li>\n<li>Keep only trusted users as <strong>Administrator<\/strong>.<\/li>\n<li>Assign editors to <strong>Editor<\/strong> or <strong>Author<\/strong> roles.<\/li>\n<\/ul>\n<p>This reduces who can change Discussion settings and comment status.<\/p>\n<p><strong>Step 2: Remove \u201cRecent Comments\u201d Widget From the Dashboard<\/strong><\/p>\n<p>WordPress adds a \u201cRecent Comments\u201d widget by default on many sites. Even if comments are off, it can still show old items. Remove it to keep the dashboard clean.<\/p>\n<ul>\n<li>Go to <strong>Dashboard \u2192 Home<\/strong>.<\/li>\n<li>Click <strong>Screen Options<\/strong> at the top right.<\/li>\n<li>Uncheck <strong>Recent Comments<\/strong>.<\/li>\n<li>Uncheck other comment-related widgets if you see them.<\/li>\n<\/ul>\n<p>If your dashboard has extra widgets from plugins, check those too. Some security and cache plugins show comment-related notices.<\/p>\n<p><strong>Step 3: Remove Comment Columns From Post and Page Lists<\/strong><\/p>\n<p>In the Posts and Pages lists, WordPress may show comment bubbles. These bubbles can confuse users if comments are disabled. You can hide them using Screen Options.<\/p>\n<ul>\n<li>Go to <strong>Posts \u2192 All Posts<\/strong>.<\/li>\n<li>Click <strong>Screen Options<\/strong> at the top.<\/li>\n<li>Uncheck <strong>Comments<\/strong> if it is listed there.<\/li>\n<li>Repeat on <strong>Pages \u2192 All Pages<\/strong>.<\/li>\n<\/ul>\n<p>This makes your content lists look cleaner and easier to scan.<\/p>\n<p><strong>Step 4: Remove Comment Discussion Panels in the Editor<\/strong><\/p>\n<p>Some editors may still see \u201cDiscussion\u201d settings in the editor sidebar. That is where users can re-enable comments per post. Hide the panel to reduce mistakes.<\/p>\n<ul>\n<li>Open any post in the editor.<\/li>\n<li>Click the three-dot menu in the top right.<\/li>\n<li>Open <strong>Preferences<\/strong> or <strong>Panels<\/strong>.<\/li>\n<li>Disable <strong>Discussion<\/strong> if it is available.<\/li>\n<\/ul>\n<p>This does not block comments by itself, but it reduces risk.<\/p>\n<h2 id=\"section-10\">Verify Everything Is Disabled (Checklist + Common Surprises)<\/h2>\n<p>Now you must confirm that everything is truly off. Some themes and plugins can still show comment areas. Cache can also show old pages for a while. Verification takes five minutes and prevents surprises later.<\/p>\n<p><strong>Quick Verification Checklist<\/strong><\/p>\n<p>Test these items in an incognito browser window. This avoids cached admin sessions and stored scripts.<\/p>\n<ul>\n<li>Open an old post and confirm no comment form shows.<\/li>\n<li>Open an old page and confirm comments are closed.<\/li>\n<li>Open a media attachment page and check comment visibility.<\/li>\n<li>Check that pings are not showing as comment entries.<\/li>\n<li>Confirm the Comments menu is hidden for your team.<\/li>\n<\/ul>\n<p>If your goal is full control, you may still need code changes. This is normal on advanced sites with custom themes.<\/p>\n<p><strong>Common Surprise 1: Theme Still Prints the Comment Template<\/strong><\/p>\n<p>Some themes always load the comment template file. Even if comments are closed, the area may show \u201cComments are closed.\u201d If you want zero comment blocks, you need a stronger method. <strong>Common Surprise 2: Cache Shows the Old Comment Form<\/strong><\/p>\n<p>Caching can keep old HTML for hours or days. Clear your cache at every layer after updates.<\/p>\n<p>Clear these layers if you use them:<\/p>\n<ul>\n<li>Page cache plugin cache<\/li>\n<li>Hosting server cache<\/li>\n<li>CDN cache like Cloudflare<\/li>\n<li>Browser cache for testing devices<\/li>\n<\/ul>\n<p>After clearing, open the page again in incognito mode. This helps you confirm the real output.<\/p>\n<p><strong>Common Surprise 3: A Plugin Re-Enables Comments or Adds Reviews<\/strong><\/p>\n<p>Some plugins add comment-like features on posts or products. Review plugins can also reuse comment systems. If you see a form again, disable that feature inside the plugin.<\/p>\n<p><strong>Common Surprise 4: Custom Post Types Still Have Comments Enabled<\/strong><\/p>\n<p>Some sites use portfolios, projects, or landing pages as custom types. They may still support comments by default. This is where code control is best.<\/p>\n<h2 id=\"section-11\">Disable Comments and Pings in WordPress Programmatically (Code Method)<\/h2>\n<p>Sometimes settings and bulk edits are not enough. Themes, plugins, and custom post types can still show comment areas. In that case, you should disable comments in WordPress programmatically. This method also helps you control pings across everything.<\/p>\n<p><strong>Where to Add the Code Safely<\/strong><\/p>\n<p>Use one of these safe options for long-term control.<\/p>\n<ul>\n<li>Add it to a <strong>small site plugin<\/strong> you can keep forever.<\/li>\n<li>Or add it to a <strong>child theme<\/strong> functions.php file.<\/li>\n<\/ul>\n<p>A site plugin is safer during theme changes. It also supports clean rollbacks later.<\/p>\n<p><strong>Code Snippet: Force Disable Comments and Pings Everywhere<\/strong><\/p>\n<p>Create a file at: wp-content\/plugins\/disable-comments-pings\/disable-comments-pings.php<br \/>\nThen activate it from <strong>Plugins \u2192 Installed Plugins<\/strong>.<\/p>\n<p>&lt;?php<br \/>\n\/**<br \/>\n* Plugin Name: Disable Comments &amp; Pings (Site-Wide)<br \/>\n* Description: Disables comments, pingbacks, and trackbacks across WordPress.<br \/>\n* Version: 1.0.0<br \/>\n*\/<\/p>\n<p>if (!defined(&#8216;ABSPATH&#8217;)) exit;<\/p>\n<p>\/**<br \/>\n* 1) Close comments and pings everywhere.<br \/>\n*\/<br \/>\nadd_filter(&#8216;comments_open&#8217;, &#8216;__return_false&#8217;, 20, 2);<br \/>\nadd_filter(&#8216;pings_open&#8217;, &#8216;__return_false&#8217;, 20, 2);<br \/>\nadd_filter(&#8216;comments_array&#8217;, &#8216;__return_empty_array&#8217;, 20, 2);<\/p>\n<p>\/**<br \/>\n* 2) Remove comment support from all post types.<br \/>\n*\u00a0 \u00a0 This is where remove_post_type_support comments WordPress matters.<br \/>\n*\/<br \/>\nadd_action(&#8216;init&#8217;, function () {<br \/>\n$post_types = get_post_types([], &#8216;names&#8217;);<br \/>\nforeach ($post_types as $type) {<br \/>\nremove_post_type_support($type, &#8216;comments&#8217;);<br \/>\nremove_post_type_support($type, &#8216;trackbacks&#8217;);<br \/>\n}<br \/>\n}, 100);<\/p>\n<p>\/**<br \/>\n* 3) Hide Comments UI in admin menus, admin bar, and dashboard.<br \/>\n*\/<br \/>\nadd_action(&#8216;admin_menu&#8217;, function () {<br \/>\nremove_menu_page(&#8216;edit-comments.php&#8217;);<br \/>\n});<\/p>\n<p>add_action(&#8216;admin_bar_menu&#8217;, function ($wp_admin_bar) {<br \/>\n$wp_admin_bar-&gt;remove_node(&#8216;comments&#8217;);<br \/>\n}, 999);<\/p>\n<p>add_action(&#8216;wp_dashboard_setup&#8217;, function () {<br \/>\nremove_meta_box(&#8216;dashboard_recent_comments&#8217;, &#8216;dashboard&#8217;, &#8216;normal&#8217;);<br \/>\n});<\/p>\n<p>\/**<br \/>\n* 4) Block direct access to comment management pages.<br \/>\n*\/<br \/>\nadd_action(&#8216;admin_init&#8217;, function () {<br \/>\nglobal $pagenow;<br \/>\nif ($pagenow === &#8216;edit-comments.php&#8217; || $pagenow === &#8216;comment.php&#8217;) {<br \/>\nwp_safe_redirect(admin_url());<br \/>\nexit;<br \/>\n}<br \/>\n});<\/p>\n<p>\/**<br \/>\n* 5) Stop pingback headers and ping processing.<br \/>\n*\/<br \/>\nadd_filter(&#8216;xmlrpc_methods&#8217;, function ($methods) {<br \/>\nunset($methods[&#8216;pingback.ping&#8217;], $methods[&#8216;pingback.extensions.getPingbacks&#8217;]);<br \/>\nreturn $methods;<br \/>\n});<\/p>\n<p>add_filter(&#8216;wp_headers&#8217;, function ($headers) {<br \/>\nif (isset($headers[&#8216;X-Pingback&#8217;])) unset($headers[&#8216;X-Pingback&#8217;]);<br \/>\nreturn $headers;<br \/>\n});<\/p>\n<p>add_action(&#8216;pre_ping&#8217;, function (&amp;$links) {<br \/>\n$links = [];<br \/>\n});<\/p>\n<p>This approach is ideal when you want disable comments WordPress without plugin features. You control everything with one clean snippet. It also helps reduce spam from ping systems.<\/p>\n<p><strong>Rollback Tips (If You Need Comments Again)<\/strong><\/p>\n<p>Rollback is simple if you used a site plugin.<\/p>\n<ul>\n<li>Deactivate the plugin from the Plugins screen.<\/li>\n<li>Clear cache and recheck your posts and pages.<\/li>\n<li>Re-enable Discussion options if you need them again.<\/li>\n<\/ul>\n<h2 id=\"section-12\">Conclusion<\/h2>\n<p>Disabling comments and pings can clean your whole WordPress site. Start with settings for new content, then bulk close older items. If your theme still shows comment areas, use the code method. It locks comments and pings across all post types. If you want help with theme conflicts or custom post types, WooHelpDesk can handle it. Visit<a href=\"https:\/\/www.woohelpdesk.com\/\"> <strong>WooHelpDesk<\/strong><\/a> to get fast WordPress fixes and support.<\/p>\n<h2 id=\"section-13\">FAQ<\/h2>\n<p><strong>1) Will this delete my existing comments?<\/strong><\/p>\n<p>No, it only closes new comments and hides forms. Your old comments stay in the database. You can delete them separately if needed.<\/p>\n<p><strong>2) Can I keep comments on posts but disable pages?<\/strong><\/p>\n<p>Yes, use bulk edit only on pages. Leave post discussion settings enabled for posts. Code can also target only selected post types.<\/p>\n<p><strong>3) Why do I still see \u201cComments are closed\u201d on pages?<\/strong><\/p>\n<p>Your theme may still load the comment template block. The message can show even when comments are disabled. Remove the template call or use stricter theme edits.<\/p>\n<p><strong>4) Will this stop pingbacks and trackbacks on old posts?<\/strong><\/p>\n<p>Yes, the code forces pings closed on all content. It also removes trackback support from post types. This is stronger than settings alone.<\/p>\n<p><strong>5) Does this work for custom post types too?<\/strong><\/p>\n<p>Yes, the snippet loops through all registered post types. It removes comments and trackbacks support for each. That includes many plugin-created post types.<\/p>\n<p><strong>6) Can this help remove comment tools from the admin area?<\/strong><\/p>\n<p>Yes, it hides menus, the admin bar icon, and widgets. It also blocks direct access to comment admin pages. This keeps your backend clean and focused.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Table of Contents Introduction What You\u2019re Turning Off (Comments vs Pings) Before You Start (Quick Safety Checks) Turn Off Comments and Pings for New Content (Site-Wide Defaults) What These Settings Do Not Change Mini Checklist Before Moving to Next Step Disable Comments on Existing Posts and Media Attachments Disable Comments on Media Attachments and Attachment [&hellip;]<\/p>\n<div class='heateor_sss_sharing_container heateor_sss_vertical_sharing heateor_sss_bottom_sharing' style='width:29px;left: 10px;top: 250px;-webkit-box-shadow:none;box-shadow:none;' data-heateor-sss-href='https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/11879'><div class=\"heateor_sss_sharing_ul\"><a aria-label=\"Facebook\" class=\"heateor_sss_facebook\" href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F11879\" title=\"Facebook\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#0765FE;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M28 16c0-6.627-5.373-12-12-12S4 9.373 4 16c0 5.628 3.875 10.35 9.101 11.647v-7.98h-2.474V16H13.1v-1.58c0-4.085 1.849-5.978 5.859-5.978.76 0 2.072.15 2.608.298v3.325c-.283-.03-.775-.045-1.386-.045-1.967 0-2.728.745-2.728 2.683V16h3.92l-.673 3.667h-3.247v8.245C23.395 27.195 28 22.135 28 16Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"X\" class=\"heateor_sss_button_x\" href=\"https:\/\/twitter.com\/intent\/tweet?text=WooHelpDesk%20Blog%20%E2%80%93%20WordPress%20%26%20WooCommerce%20Tips%20and%20Tutorials%20-%20&url=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F11879\" title=\"X\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_x\" style=\"background-color:#2a2a2a;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg width=\"100%\" height=\"100%\" style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M21.751 7h3.067l-6.7 7.658L26 25.078h-6.172l-4.833-6.32-5.531 6.32h-3.07l7.167-8.19L6 7h6.328l4.37 5.777L21.75 7Zm-1.076 16.242h1.7L11.404 8.74H9.58l11.094 14.503Z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Linkedin\" class=\"heateor_sss_button_linkedin\" href=\"https:\/\/www.linkedin.com\/sharing\/share-offsite\/?url=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F11879\" title=\"Linkedin\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_linkedin\" style=\"background-color:#0077b5;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path d=\"M6.227 12.61h4.19v13.48h-4.19V12.61zm2.095-6.7a2.43 2.43 0 0 1 0 4.86c-1.344 0-2.428-1.09-2.428-2.43s1.084-2.43 2.428-2.43m4.72 6.7h4.02v1.84h.058c.56-1.058 1.927-2.176 3.965-2.176 4.238 0 5.02 2.792 5.02 6.42v7.395h-4.183v-6.56c0-1.564-.03-3.574-2.178-3.574-2.18 0-2.514 1.7-2.514 3.46v6.668h-4.187V12.61z\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><a aria-label=\"Pinterest\" class=\"heateor_sss_button_pinterest\" href=\"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/11879\" onclick=\"event.preventDefault();javascript:void( (function() {var e=document.createElement('script' );e.setAttribute('type','text\/javascript' );e.setAttribute('charset','UTF-8' );e.setAttribute('src','\/\/assets.pinterest.com\/js\/pinmarklet.js?r='+Math.random()*99999999);document.body.appendChild(e)})());\" title=\"Pinterest\" rel=\"noopener\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_pinterest\" style=\"background-color:#cc2329;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"-2 -2 35 35\"><path fill=\"#fff\" d=\"M16.539 4.5c-6.277 0-9.442 4.5-9.442 8.253 0 2.272.86 4.293 2.705 5.046.303.125.574.005.662-.33.061-.231.205-.816.27-1.06.088-.331.053-.447-.191-.736-.532-.627-.873-1.439-.873-2.591 0-3.338 2.498-6.327 6.505-6.327 3.548 0 5.497 2.168 5.497 5.062 0 3.81-1.686 7.025-4.188 7.025-1.382 0-2.416-1.142-2.085-2.545.397-1.674 1.166-3.48 1.166-4.689 0-1.081-.581-1.983-1.782-1.983-1.413 0-2.548 1.462-2.548 3.419 0 1.247.421 2.091.421 2.091l-1.699 7.199c-.505 2.137-.076 4.755-.039 5.019.021.158.223.196.314.077.13-.17 1.813-2.247 2.384-4.324.162-.587.929-3.631.929-3.631.46.876 1.801 1.646 3.227 1.646 4.247 0 7.128-3.871 7.128-9.053.003-3.918-3.317-7.568-8.361-7.568z\"\/><\/svg><\/span><\/a><a aria-label=\"Telegram\" class=\"heateor_sss_button_telegram\" href=\"https:\/\/telegram.me\/share\/url?url=https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F11879&text=WooHelpDesk%20Blog%20%E2%80%93%20WordPress%20%26%20WooCommerce%20Tips%20and%20Tutorials%20-%20\" title=\"Telegram\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg heateor_sss_s__default heateor_sss_s_telegram\" style=\"background-color:#3da5f1;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"0 0 32 32\"><path fill=\"#fff\" d=\"M25.515 6.896L6.027 14.41c-1.33.534-1.322 1.276-.243 1.606l5 1.56 1.72 5.66c.226.625.115.873.77.873.506 0 .73-.235 1.012-.51l2.43-2.363 5.056 3.734c.93.514 1.602.25 1.834-.863l3.32-15.638c.338-1.363-.52-1.98-1.41-1.577z\"><\/path><\/svg><\/span><\/a><a aria-label=\"Whatsapp\" class=\"heateor_sss_whatsapp\" href=\"https:\/\/api.whatsapp.com\/send?text=WooHelpDesk%20Blog%20%E2%80%93%20WordPress%20%26%20WooCommerce%20Tips%20and%20Tutorials%20-%20%20https%3A%2F%2Fwww.woohelpdesk.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F11879\" title=\"Whatsapp\" rel=\"nofollow noopener\" target=\"_blank\" style=\"font-size:32px!important;box-shadow:none;display:inline-block;vertical-align:middle\"><span class=\"heateor_sss_svg\" style=\"background-color:#55eb4c;width:25px;height:25px;border-radius:999px;display:inline-block;opacity:1;float:left;font-size:32px;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle;background-repeat:repeat;overflow:hidden;padding:0;cursor:pointer;box-sizing:content-box\"><svg style=\"display:block;border-radius:999px;\" focusable=\"false\" aria-hidden=\"true\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"100%\" height=\"100%\" viewBox=\"-6 -5 40 40\"><path class=\"heateor_sss_svg_stroke heateor_sss_no_fill\" stroke=\"#fff\" stroke-width=\"2\" fill=\"none\" d=\"M 11.579798566743314 24.396926207859085 A 10 10 0 1 0 6.808479557110079 20.73576436351046\"><\/path><path d=\"M 7 19 l -1 6 l 6 -1\" class=\"heateor_sss_no_fill heateor_sss_svg_stroke\" stroke=\"#fff\" stroke-width=\"2\" fill=\"none\"><\/path><path d=\"M 10 10 q -1 8 8 11 c 5 -1 0 -6 -1 -3 q -4 -3 -5 -5 c 4 -2 -1 -5 -1 -4\" fill=\"#fff\"><\/path><\/svg><\/span><\/a><\/div><div class=\"heateorSssClear\"><\/div><\/div>","protected":false},"author":1,"featured_media":11897,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-11879","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/11879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/comments?post=11879"}],"version-history":[{"count":3,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/11879\/revisions"}],"predecessor-version":[{"id":11882,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/posts\/11879\/revisions\/11882"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/media\/11897"}],"wp:attachment":[{"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/media?parent=11879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/categories?post=11879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.woohelpdesk.com\/blog\/wp-json\/wp\/v2\/tags?post=11879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}