Descripción
Disable Comments – Eliminar comentarios y detener el spam [Compatibilidad con multisitio]
Activa/desactiva los comentarios en cualquier contenido de WordPress (páginas, entradas o medios) para detener a los spammers. Compatibilidad con WP-CLI, XML-RPC y REST-API para detener los comentarios spam.
Más información acerca del plugin ◼️ Documentación ◼️ Foro de soporte
Toma el control global sobre tu sitio de WordPress
Anula todos los ajustes relacionados con los comentarios en tu web y gestiona tus comentarios de la manera que desees.
Desactivar comentarios en entradas, páginas y medios
Elige qué entradas, páginas o medios deben permitir comentarios de los visitantes del sitio y ajusta Desactivar comentarios en consecuencia
No permitir comentarios en la red multisitio
¿Tiene varias webs? Deshazte de los comentarios irrelevantes en toda la red usando el plugin Disable Comments
CARACTERÍSTICAS CLAVE DE DISABLE COMMENTS
- Todos los enlaces de «Comentarios» están ocultos en el menú de administración y en la barra de administración.
- Todas las secciones relacionadas con los comentarios («Comentarios recientes», «Discusión», etc.) están ocultos en el escritorio de WordPress.
- Todos los widgets relacionados con los comentarios están desactivados (para que tu tema no pueda utilizarlos).
- La página de ajustes de «Discusión» está oculta.
- Todos los feeds de RSS/Atom están desactivados (y las solicitudes a éstos serán redirigidos a la entrada padre correspondiente).
- La cabecera X-Pingback HTTP está eliminada de todas las páginas.
- Los pingbacks salientes están desactivados.
- Detén los comentarios de spam por completo desde el sitio con un solo clic.
- Delete comments by type, including WooCommerce product reviews.
- Desactiva los comentarios a través de XML-RPC y REST-API
- Fully Multi-site Network supported.
- Manage multiple website network-specific subsites or entire network comments in advance.
- Exclude Disable Comments Settings based on user roles.
- Keep the WordPress 6.9+ Block Editor “Notes” comment type working while every other comment stays off.
- [Nuevo en 2.8.0] Listo para agentes de IA: es compatible con la API WordPress Abilities (WP 6.9+), por lo que los asistentes de IA y los clientes MCP pueden leer tus ajustes de comentarios.
Por favor, borra cualquier comentario existente en tu sitio antes de aplicar este ajuste, de lo contrario (dependiendo de tu tema), esos comentarios todavía podrían ser mostrados a los visitantes. Puedes usar la herramienta de borrado de comentarios para borrar cualquier comentario existente en tu sitio.
🌟 NOVEDADES DE DISABLE COMMENTS 2.0
INCREÍBLE INTERFAZ FÁCIL DE USAR
Configura fácilmente tus ajustes relacionados con los comentarios con una increíble y atractiva interfaz de usuario similar a una aplicación.
COMANDOS DE WP-CLI PARA DISABLE COMMENTS
Usa el control WP-CLI para configuraciones relacionadas con comentarios para desactivar comentarios en entradas, páginas, adjuntos o en cualquier lugar de tu sitio web.
PRIMEROS PASOS CON EL ASISTENTE RÁPIDO
Usa el asistente de ajuste rápido después de activar el plugin para configurar instantáneamente los ajustes relacionados con los comentarios de tu sitio WordPress.
DESACTIVAR COMENTARIOS EN LA DOCUMENTACIÓN
Desactiva instantáneamente los comentarios en tus páginas de documentación o base de conocimientos de WordPress con un solo clic.
ELIMINAR UNO O MÁS TIPO DE COMENTARIO
Elimina permanentemente ciertos tipos de comentarios de tu sitio WordPress, incluidas reseñas de productos WooCommerce y comentarios genéricos.
DESACTIVAR COMENTARIOS MEDIANTE XML-RPC y API REST
Bloquea cualquier comentario realizado en tu sitio web de WordPress mediante la especificación XML-RPC y la API REST.
Nota importante: Usa este plugin si no quieres ningún comentario en tu sitio (o en ciertos tipos de contenido). No lo uses si quieres desactivar selectivamente los comentarios en entradas individuales – De todos modos, WordPress te permite hacerlo. Si no sabes cómo desactivar los comentarios en entradas individuales, hay instrucciones en las FAQ.
Si encuentras algún fallo o tienes sugerencias, por favor, usa el foro de soporte del plugin. ¡No puedo arreglarlo si no sé que está roto! Por favor, comprueba las FAQ para los problemas más comunes.
¿Quieres colaborar? Aquí está el repositorio de desarrollo de GitHub.
También está disponible una versión imprescindible del plugin.
Configuración avanzada
Algún comportamiento del plugin puede ser modificado por los administradores del sitio y los desarrolladores de plugins/temas a través de código:
-
Definir
DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATEy ponerlo afalsepara evitar que el plugin sustituya la plantilla de comentarios del tema por una vacía. -
Definir
DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGSy establecerlo atruepara evitar que el plugin oculte la página de ajustes de discusión.
Estas definiciones pueden hacerse en tu archivo wp-config.php principal o en el archivo functions.php de tu tema.
ESTE PLUGIN AHORA ES MANTENIDO POR EL EQUIPO WPDeveloper.
💙 ¿TE ENCANTÓ DISABLE COMMENTS?
-
Para obtener documentación y tutoriales, visita nuestra documentación
-
Para ver tutoriales en video, ve a nuestra lista de reproducción de YouTube
-
Únete a nuestro grupo de Facebook
-
Si te encanta Disable Comments, califícanos en WordPress
-
Para obtener más información acerca de características, FAQ y documentación, comprueba nuestro sitio web Disable Comments
🔥 OBTÉN REGALOS PARA TU SITIO WORDPRESS
Considera comprobar nuestras otras soluciones de WordPress y mejorar tu sitio web de WordPress:
🔝 Extensiones esenciales para Elementor: Extensiones de Elementor más populares con más de 2 millones de usuarios satisfechos y más de 95 widgets y bloques listos
🔔 NotificationX: La mejor solución de marketing de prueba social y FOMO para aumentar las tasas de conversión.
🔗 BetterLinks: El último y mejor plugin de gestión de enlaces de WordPress para acortar, hacer seguimiento y analizar enlaces.
📄 EmbedPress: EmbedPress te permite incrustar cualquier cosa, incluidos vídeos, imágenes, entradas, audio, mapas y subir PDF, DOC, PPT, etc.
☁ Templately: biblioteca con más de 6000 plantillas gratuitas para Elementor y Gutenberg, además de colaboración en la nube para WordPress.
📚 BetterDocs: El mejor plugin de base de conocimientos y documentación para WordPress reduce los tiques de soporte manual y mejora la experiencia del usuario.
⏰ SchedulePress: Calendario editorial avanzado con programación de entradas de WordPress, uso compartido en redes sociales, alertas programadas perdidas y más.
⚡ Flexia: El tema más liviano, personalizable y multipropósito para WordPress.
Visita WPDeveloper para saber más sobre cómo mejorar en WordPress con los tutoriales de ayuda y consejos y trucos.
Source Code
The plugin build compiles assets/js/disable-comments.js from src/disable-comments.js with Babel and assets/css/style.css from assets/scss/style.scss with Sass, using Grunt. These sources are not included in the plugin zip. Other first-party JavaScript and CSS files in assets/ are maintained directly.
Both the sources and the build configuration live in the GitHub development repository. To build them yourself:
npm install
npm run build
Bundled third-party assets
The Select2, pagination.js, and SweetAlert2 JavaScript/CSS distributions are bundled separately from the Grunt build. Their full license notices are in assets/licenses/. The DM Sans webfont notice and SIL Open Font License 1.1 are in assets/fonts/OFL.txt. The plugin license is in LICENSE.txt.
- Select2 4.1.0-rc.0: source and build files, MIT license.
- pagination.js, bundled header 2.1.5: upstream source, MIT license. The CSS matches upstream 2.1.5; the modified JavaScript is shipped in readable form at
assets/js/pagination.min.jsand is not rebuilt by Grunt. - SweetAlert2 10.10.1: source and build files, MIT license.
- DM Sans latin webfonts, distribution v11: upstream source, SIL Open Font License 1.1.
External services
Disable Comments connects to one external service, and only if you opt in.
WPInsight usage analytics (opt-in, off by default)
WPInsight is WPDeveloper’s usage-analytics service. We use it to learn which WordPress versions, PHP versions, plugins and themes people run alongside Disable Comments, so we can keep the plugin compatible with them.
- When data is sent: only after an administrator clicks «Sure, I’d like to help» in the opt-in notice. It is sent once at that moment, then about once a day by WP-Cron (only the details that changed since the last report), and once more when the plugin is deactivated. If you click «No Thanks.» or ignore the notice, nothing is ever sent.
- What is sent: your site URL and site name, WordPress version, site language and charset, PHP version, server software, whether the site is a multisite, text direction, the server path of the plugin, the lists of active and inactive plugins, the active theme and its version, the Disable Comments version, and the account email address of the administrator who clicks the opt-in button (used to send the discount coupon). A daily report can also include the current logged-in user account email; a background report without a logged-in user omits email. Reports also include the plugin name and identifier, tracker version, activation status and marketing flag, service-assigned site identifier, and original site URL when available. On deactivation it sends the same details again, plus the account email address of the administrator who deactivates the plugin, the deactivation time, and the reason and any note they enter in the deactivation form. Like any web request, the connection also reveals your server’s IP address to the service.
- Where it is sent:
https://send.wpinsight.com/process-plugin-data - Terms and privacy: Terms and Conditions, Privacy Policy
The «Still Seeing a Comment Form?» check on the plugin’s settings page also requests pages of your own site to check what your theme outputs. Those requests go to your own site only and send nothing to a third party.
Capturas
Instalación
La forma moderna:
- En el escritorio de WordPress, ve a la sección «Añadir nuevo plugin».
- Busca «Disable Comments».
- Instálalo, luego actívalo.
- Se puede acceder a los ajustes del plugin a través del menú de «Ajustes» en el área de administración (ya sea la administración de tu sitio para instalaciones de sitios individuales o tu administración de red para instalaciones de red).
La forma antigua:
- Sube la carpeta del plugin al directorio
/wp-content/plugins/ - Activa el plugin a través del menú «Plugins» en WordPress
- Se puede acceder a los ajustes del plugin a través del menú de «Ajustes» en el área de administración (ya sea la administración de tu sitio para instalaciones de sitios individuales o tu administración de red para instalaciones de red).
FAQ
-
No ocurre nada después de desactivar los comentarios en todas las entradas. Los formularios de comentarios siguen apareciendo cuando veo mis entradas.
-
Esto es porque tu tema no está comprobando el estado de los comentarios de las entradas de la manera adecuada.
Es posible que quieras dirigir al autor de tu tema a esta explicación de lo que están haciendo mal y cómo corregirlo.
-
¿Cómo puedo eliminar el texto que dice «Los comentarios están cerrados» al final de los artículos cuando los comentarios están desactivados?
-
El plugin hace todo lo posible para ocultar este mensaje (y cualquier otro relacionado con los comentarios).
Si sigues viendo el mensaje, eso significa que tu tema está anulando este comportamiento y tendrás que editar sus archivos manualmente para eliminarlo. Dos enfoques comunes son eliminar o comentar las líneas correspondientes en
wp-content/your-theme/comments.php, o añadir una declaración enwp-content/your-theme/style.cssque oculte el mensaje a tus visitantes. En cualquier caso, ¡asegúrate de saber lo que haces! -
Solo quiero desactivar los comentarios en ciertas entradas, no globalmente. ¿Qué debo hacer?
-
Ir a la página de edición para la entrada en la que deseas desactivar los comentarios. Desplázate hacia abajo a la caja de «Discusión», donde se encuentran las opciones de comentarios de esa entrada. Si no ves un cuadro de «Discusión», a continuación, haga clic en «Opciones de pantalla» en la parte superior de la pantalla, y asegúrate de que la casilla de verificación «Discusión» está marcada.
También puedes editar por lotes el estado de los comentarios de múltiples entradas desde la pantalla de entradas.
-
Quiero borrar los comentarios de mi base de datos. ¿Qué debo hacer?
-
Ve a la página de herramientas del plugin Disable Comments y usa la herramienta de eliminar comentarios para borrar todos los comentarios o según los tipos de contenido especificados de tu base de datos.
This cannot be undone. Back up your database before running it.
-
How do I disable comments across an entire multisite network?
-
Network-activate the plugin. The settings then live under your Network Admin, where you can either apply one configuration to every site at once or configure individual subsites from the network screen. If you activate the plugin on a single site instead, it only ever affects that site.
-
How do I disable WooCommerce product reviews?
-
WooCommerce product reviews are stored as comments on the
productpost type, so disabling comments onproductturns reviews off too. To remove reviews that already exist, use the Delete Comments tool and select the product post type. -
Can I configure the plugin from WP-CLI?
-
Yes. Settings and deletion are both scriptable, which is useful across a fleet of sites:
wp disable-comments settings --types=post wp disable-comments settings --types=page --add wp disable-comments settings --xmlrpc --rest-api wp disable-comments delete --types=allRun
wp help disable-comments settingsfor the full list of options. Full WP-CLI documentation. -
WordPress 6.9 added “Notes” in the Block Editor. Will this plugin break them?
-
No, as long as you allow them. Notes are technically a comment type (
note), so a blanket disable would switch them off along with everything else. Use the Enable Certain Comment Types setting to keep Notes working while all other comments stay disabled. -
I disabled comments but a cached page still shows the comment form.
-
As of version 2.8.0 the plugin clears page caches automatically whenever you save settings or delete comments, so this should resolve itself. If your host or CDN is not covered, it can hook
disable_comments_purge_cachesto clear its own cache at the same moment.Note that the plugin never touches your object cache — only page caches. The stale thing is rendered HTML.
-
Can AI assistants read my comment settings?
-
Sí, en WordPress 6.9 y superior. El plugin registra una capacidad de solo lectura
disable-comments/get-statusa través de la API WordPress Abilities, de modo que los asistentes de IA, la paleta de comandos y los clientes MCP pueden preguntar al sitio dónde están desactivados los comentarios. Es de solo lectura y requiere la capacidadmanage_options— nada puede modificar tus ajustes a través de ella. -
What happens if I deactivate the plugin?
-
Los comentarios vuelven al estado que tenían antes, es decir, al comportamiento predeterminado de WordPress y tu tema. El plugin filtra el estado de los comentarios en tiempo de ejecución, en lugar de reescribir tus entradas, por lo que la configuración original de cada entrada permanece intacta.
La única excepción es la herramienta de borrar comentarios: los comentarios que elimina desaparecen de forma permanente y desactivarla no los recuperará.
Reseñas
Colaboradores y desarrolladores
«Disable Comments» es un software de código abierto. Las siguientes personas han colaborado con este plugin.
Colaboradores«Disable Comments» está traducido en 42 idiomas. Gracias a los traductores por sus contribuciones.
Traduce «Disable Comments» a tu idioma.
¿Interesado en el desarrollo?
Revisa el código , echa un vistazo al repositorio SVN o suscríbete al registro de desarrollo por RSS.
Registro de cambios
El formato se basa en Keep a Changelog
y este proyecto se adhiere a Semantic Versioning.
Esto se mantendrá a partir del 19 de agosto de 2020 – @asif2bd
[2.9.1] – 2026-10-25
- Improved: Settings tabs now show in the page URL, so a tab can be linked or bookmarked and stays open after a refresh
- Fixed: The network-admin «Custom post types» label on the Disable Comments and Delete Comments tabs no longer renders at 10px
- Fixed: Saving settings no longer triggers a PHP warning when «Everywhere» has never been set
- Improved: Several minor improvements and fixes throughout the plugin
[2.9.0] – 2026-09-01
- New Feature: Conditional rules – disable or re-enable comments by taxonomy term, page template, or post age, instead of by post type alone
- New Feature: Dry-run preview for Delete Comments – see which comments a delete will remove before running it, and download them as CSV first
- New Feature: Blocked-attempt counter – see how many comment, trackback and REST attempts the plugin has turned away, reported in Site Health
- New Feature: Export and import settings as JSON, with a diff preview before anything is written
- New Feature: WooCommerce product reviews are now a first-class setting, separate from ordinary comments, including closing reviews while other product comments stay open
- New Feature: Theme conflict scanner – diagnoses a theme that still renders a comment form after comments are disabled
- New Feature: Abilities API write support (WordPress 6.9+) – AI assistants and MCP clients can change comment settings and delete comments, gated on the same capabilities as the admin screens
- New Feature: The advanced tools now have a Settings tab of their own, leaving the first screen to the core choice of where comments are off
- Improved: The Delete Comments preview lists the comments it matched – author, date, post and an excerpt – rather than only how many there are
- Improved: Conditional rule terms are searchable, so a taxonomy with more than 200 terms is fully reachable
- Improved: Site Health reports conditional rules, so the overview no longer reads «comments are enabled everywhere» while a rule is closing them
- Improved: Settings screen layout – aligned rule controls, a readable blocked-attempt breakdown, consistent label sizes, and result boxes that match the rest of the plugin
- Improved: readme and plugin directory listing rewritten for clarity
- Fixed: CSV backups escape every free-text column, so a comment cannot execute as a formula when the file is opened in a spreadsheet
- Fixed: An anonymous REST read is no longer counted as a blocked attempt
- Fixed: «Counting blocked attempts since» keeps its start date instead of showing today’s date until the first block
- Fixed: A delete that matches nothing no longer reloads the whole settings screen
- Fixed: The review prompt can be dismissed on every screen it appears on
- Fixed: Uninstall removes the review-prompt data the plugin created
- Fixed: The Abilities API set-status summary describes the site’s configuration rather than the calling user’s role exemption
- Fixed: «Total Comments» says what it counts, so it no longer contradicts the mode-specific delete preview
- Developer:
disable-comments deletegains--dry-runand--export=<file>; newdisable-comments exportanddisable-comments importWP-CLI commands
[2.8.0] – 2026-07-27
- New Feature: WordPress Abilities API support (WordPress 6.9+) — AI assistants, the command palette and MCP clients can now ask the site where comments are disabled, via the read-only
disable-comments/get-statusability - Fixed: Page caches are now purged when settings are saved or comments are deleted — previously a cached page kept serving the comment form after comments were disabled
- Compatible con WordPress 7.0
[2.7.1] – 2026-07-22
- Improvement: General improvements
[2.7.0] – 2026-04-05
- Improvement: Improved overall performance and stability
[2.6.2] – 2026-01-20
- Fixed: An issue where deleting Notes in WordPress 6.9+ throws an error
[2.6.1] – 2025-12-02
- Compatible with WordPress 6.9
- Added: Introduced the “Enable Certain Comment Types” setting, allowing you to exclude the new Block Editor “Notes” comment type introduced in WordPress 6.9
Older releases are listed in changelog.txt.
