Disable Comments

Beskrivning

This plugin allows administrators to globally disable comments on any post type (posts, pages, attachments, etc.) so that these settings cannot be overridden for individual posts. It also removes all comment-related fields from edit and quick-edit screens. On multisite installations, it can be used to disable comments on the entire network.

Dessutom kan kommentarsrelaterade objekt tas bort från adminpanelen, widgetar, adminmenyn och adminpanelen.

Viktigt meddelande: Använd detta tillägg om du inte vill ha några kommentarer alls på din webbplats (eller på särskilda inläggstyper). Använd det inte om du hellre selektivt vill ta bort kommentarer på enskilda inlägg – det låter WordPress dig göra ändå. Om du inte vet hur man tar bort kommentarer på specifika inlägg så finns det instruktioner i vanliga frågor.

Om du hittar några buggar eller har förslag på förbättringar, använd tilläggets supportforum. Jag kan inte fixa det om jag inte vet att det är trasigt! Kolla in FAQ för vanliga problem.

Want to contribute? Here’s the GitHub development repository.

A must-use version of the plugin is also available.

Detaljer

The plugin provides the option to completely disable the commenting feature in WordPress. When this option is selected, the following changes are made:

  • All ”Comments” links are hidden from the Admin Menu and Admin Bar;
  • All comment-related sections (”Recent Comments”, ”Discussion” etc.) are hidden from the WordPress Dashboard;
  • All comment-related widgets are disabled (so your theme cannot use them);
  • Inställningssidan ”Diskussion” är dold:
  • All comment RSS/Atom feeds are disabled (and requests for these will be redirected to the parent post);
  • The X-Pingback HTTP header is removed from all pages;
  • Outgoing pingbacks are disabled.
  • [Nytt] Ta bort kommentarer efter typ.

Ta bort alla befintliga kommentarer på din webbplats innan du använder denna inställning, annars (beroende på ditt tema) kan dessa kommentarer fortfarande visas för besökare. Du kan använda verktyget ”Ta bort kommentarer” för att ta bort eventuella befintliga kommentarer på din webbplats.

Avancerad konfiguration

Some of the plugin’s behaviour can be modified by site administrators and plugin/theme developers through code:

  • Define DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE and set it to false to prevent the plugin from replacing the theme’s comment template with an empty one.

  • Definiera DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS och ställ in det till true för att förhindra att tillägget döljer sidan för diskussionsinställningar.

These definitions can be made either in your main wp-config.php or in your theme’s functions.php file.

Detta tillägg underhålls nu av teamet WPDeveloper.

💙 LOVED Disable Comments?

🔥 GET FREEBIES FOR YOUR WORDPRESS SITE

Consider checking out our other WordPress solutions & boost your WordPress website:

🔝 Essential Addons For Elementor: Most popular Elementor addons with 70+ widgets & ready blocks

🔔NotificationX – Best Social Proof & FOMO Marketing Solution to increase conversion rates.

📄 EmbedPress: EmbedPress lets you embed videos, images, posts, audio, maps and upload PDF, DOC, PPT & all other types of content into your WordPress site with one-click and showcase it beautifully for the visitors.

Templately: Free templates library for Elementor & Gutenberg along with the cloud collaboration for WordPress.

📚 BetterDocs: Best Documentation & Knowledge Base Plugin for WordPress reduce manual support tickets & improve user experience.

WP Scheduled Posts: Advanced editorial calendar & complete solution for WordPress Post Scheduling, social sharing, missed scheduled alerts and more.

ReviewX: WooCommerce Product review plugin that allows users to submit product reviews with multiple criteria, photos, video and more.

Flexia: Most lightweight, customizable & multi purpose theme for WordPress.

Visit WPDeveloper to learn more about how to do better in WordPress with Help Tutorial, Tips & Tricks.

Skärmdumpar

  • Inställningsskärm för Disable Comments
  • Ta bort kommentarer under verktygsmenyn.

Installation

Modernt sätt:

  1. Go to the WordPress Dashboard ”Add New Plugin” section.
  2. Sök efter ”Disable Comments”.
  3. Installera och aktivera det sedan.
  4. The plugin settings can be accessed via the ’Settings’ menu in the administration area (either your site administration for single-site installs, or your network administration for network installs).

Gammalt sätt:

  1. Ladda upp tilläggets mapp till katalogen /wp-content/plugins/
  2. Aktivera tillägget via menyn ”Tillägg” i WordPress.
  3. The plugin settings can be accessed via the ’Settings’ menu in the administration area (either your site administration for single-site installs, or your network administration for network installs).

Vanliga frågor

Inget händer efter att jag inaktiverat kommentarer på alla inlägg – kommentarsfälten syns fortfarande när jag visar mina inlägg.

This is because your theme is not checking the comment status of posts in the correct way.

You may like to point your theme’s author to this explanation of what they are doing wrong, and how to fix it.

How can I remove the text that says ”comments are closed” at the bottom of articles where comments are disabled?

The plugin tries its very best to hide this (and any other comment-related) messages.

If you still see the message, then it means your theme is overriding this behaviour, and you will have to edit its files manually to remove it. Two common approaches are to either delete or comment out the relevant lines in wp-content/your-theme/comments.php, or to add a declaration to wp-content/your-theme/style.css that hides the message from your visitors. In either case, make you you know what you are doing!

I only want to disable comments on certain posts, not globally. What do I do?

Installera inte detta tillägg!

Go to the edit page for the post you want to disable comments on. Scroll down to the ”Discussion” box, where you will find the comment options for that post. If you don’t see a ”Discussion” box, then click on ”Screen Options” at the top of your screen, and make sure the ”Discussion” checkbox is checked.

You can also bulk-edit the comment status of multiple posts from the posts screen.

Jag vill ta bort kommentarer från min databas. Hur gör jag?

Go to the tools page for the Disable Comments plugin and utlize the Delete Comments tool to delete all comments or according to the specified post types from your database.

Recensioner

25 augusti, 2020
Comments are a great tool to interact with users but in many cases, they are not necessary and it only attracts spam. This plugins solve your problem in two clicks.
22 juni, 2020
Easy, straightforward, works. I use it in conjunction with the "Simply Static" plugin to generate a static version of a site that I can manage internally work WP, and host on github pages.
Läs alla 232 betyg

Bidragsgivare och utvecklare

”Disable Comments” är programvara med öppen källkod. Följande personer har bidragit till detta tillägg.

Bidragande personer

”Disable Comments” har översatts till 33 språk. Tack till översättarna för deras bidrag.

Översätt ”Disable Comments” till ditt språk.

Intresserad av programutveckling?

Läs programkoden, kika på SVN-filförvaret eller prenumerera på utvecklarloggen via RSS.

Ändringslogg

The format is based on Keep a Changelog
and this project adheres to Semantic Versioning.
This will be maiintained from August 19, 2020 – @asif2bd

[1.11.0] – 2020-08-22

  • Introducing Delete Comment by Type – Contribution by garretthyder
  • PHP 7.4 Tested
  • WordPress 5.5 Compatible Tested

[1.10.3] – 2020-07-29

  • Minor fix – changelog backported.

1.10.0

  • Disable ”recent comments” Gutenberg block.

1.9.0

  • Fix compatibility with WordPress 5.0 and above.
  • Remove deprecated ”persistent mode” feature.

1.8.0

  • Added DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS configuration.

1.7.1

  • Small enhancements to hiding comment-related functionality in the admin.

1.7

  • Dropped logic to try and hide the comments link from the Meta widget. Administrators should manually add styling to hide this link, or replace the Meta widget with an alternative.
  • Removed the disable_comments_allow_persistent_mode filter. Define DISABLE_COMMENTS_ALLOW_PERSISTENT_MODE instead.

1.6

  • Lade till ett verktyg för massradering av kommentarer.

1.5.2

  • Fix Javascript errors when the Meta widget is enabled.
  • Hide comments link from the Welcome panel.

1.5.1

  • Dölj befintliga kommentarer om det finns några.
  • Filter the comments link in the Meta widget if it is enabled.

1.5

  • Remove the comments feed link from the head in WP 4.4 and higher.

1.4.2

  • Delay loading of translation text domain until all plugins are loaded. This allows plugins to modify translations.

1.4

  • Hide the troublesome ”persistent mode” option for all sites where it is not in use. This option will be removed in a future release.

1.3.2

  • Compatibility updates and code refactoring for WordPress 4.3
  • Lägger till några nya översättningar

1.3.1

  • Change the behaviour for comment feed requests. This removes a potential security issue.

1.3

  • Move persistent mode filter into a define.
  • Add an advanced option to show the theme’s comment template even when comments are disabled.

1.2

  • Allow network administrators to disable comments on custom post types across the whole network.

1.1.1

  • Fix PHP warning when active_sitewide_plugins option doesn’t contain expected data type.

1.1

  • Attempt to hide the comments template (”Comments are closed”) whenever comments are disabled.

1.0.4

  • Fix CSRF vulnerability in the admin. Thanks to dxw for responsible disclosure.

1.0.3

  • Compatibility fix for WordPress 3.8

1.0.2

  • Disable comment-reply script for themes that don’t check comment status properly.
  • Add French translation

1.0.1

  • Fix issue with settings persistence in single-site installations.

1.0

  • Prevent theme comments template from being displayed when comments are disabled everywhere.
  • Prevent direct access to comment admin pages when comments are disabled everywhere.

0.9.2

  • Make persistent mode option filter available all the time.
  • Fix redirection for feed requests
  • Fix admin bar filtering in WP 3.6

0.9.1

  • Short life in the wild.

0.9

  • Added gettext support and German translation.
  • Added links to GitHub development repo.
  • Allow network administrators to prevent the use of persistent mode.

0.8

  • Remove X-Pingback header when comments are completely disabled.
  • Disable comment feeds when comment are completely disabled.
  • Simplified settings page.

0.7

  • Now supports Network Activation – disable comments on your entire multi-site network.
  • Simplified settings page.

0.6

  • Add ”persistent mode” to deal with themes that don’t use filterable comment status checking.

0.5

  • Allow temporary disabling of comments site-wide by ensuring that original comment statuses are not overwritten when a post is edited.

0.4

  • Added the option to disable the Recent Comments template widget.
  • Bugfix: don’t show admin messages to users who don’t can’t do anything about them.

0.3.5

  • Bugfix: Other admin menu items could inadvertently be hidden when ’Remove the ”Comments” link from the Admin Menu’ was selected.

0.3.4

  • Bugfix: A typo on the settings page meant that the submit button went missing on some browsers. Thanks to Wojtek for reporting this.

0.3.3

  • Bugfix: Custom post types which don’t support comments shouldn’t appear on the settings page
  • Add warning notice to Discussion settings when comments are disabled

0.3.2

  • Bugfix: Some dashboard items were incorrectly hidden in multisite

0.3.1

  • Compatibility fix for WordPress 3.3

0.3

  • Added the ability to remove links to comment admin pages from the Dashboard, Admin Bar and Admin Menu

0.2.1

  • Usability improvements to help first-time users configure the plugin.

0.2

  • Bugfix: Make sure pingbacks are also prevented when comments are disabled.