| 开发者 | yakuradev |
|---|---|
| 更新时间 | 2026年3月13日 04:27 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
/wp/v2/comments endpoints and block comment requestsyakura-commenti/v1/ endpoints for reading and updating settings programmaticallyyakura_commenti_.
WP-CLI: wp yakura-commenti status|settings|delete|stats|export|import|log|reset.
REST API: GET/POST /yakura-commenti/v1/settings, GET /yakura-commenti/v1/status (requires manage_options).
Requirements
yakura-commenti folder to /wp-content/plugins/No. Disabling comments only prevents new comments from being posted. Your existing comments remain in the database untouched. You can optionally keep displaying them on the front end by enabling the "Show Existing Comments" setting. If you do want to delete comments, use the Tools page for bulk deletion with a preview of exactly what will be removed.
Yakura Commenti replaces the default comment template with a blank one, so the "comments are closed" message should not appear. If your theme uses a custom template that hard-codes this message, you may need to edit your theme template or use a CSS rule to hide it.
Yes. Instead of disabling everywhere, select individual post types (posts, pages, custom post types) from the Post Types tab in settings. Only the selected types will have comments disabled.
Yes. Every post, page, and custom post type has a "Yakura Commenti" meta box in the editor. Set it to "Enable" to override the global setting and keep comments open on that particular post.
Yes. WooCommerce order notes use a special comment type. You can whitelist "Order Note" in the Comment Types setting so order notes continue to work normally even when comments are disabled.
Yes. Yakura Commenti blocks comment submissions at multiple levels: it closes the comment form, blocks the REST API comment endpoints, removes XML-RPC comment methods, and returns an error on direct form submissions. Spam bots cannot post comments through any channel.
Yes. When feed and pingback removal is enabled, the plugin removes the X-Pingback header, closes pings on all posts, and removes the pingback.ping and pingback.extensions.getPingbacks XML-RPC methods.
No. Yakura Commenti uses standard WordPress filters and actions. It does not modify your database schema, alter theme files, or override other plugins. If you deactivate it, everything returns to its previous state.
Yes. All changes are reversible. Toggle the settings back, deactivate the plugin, or use the per-post override to re-enable comments on individual posts. Nothing is permanently altered.
No. The plugin is lightweight and only runs the hooks it needs. There are no external API calls, no additional database tables, and no front-end JavaScript. Blocking Gravatar requests can actually improve page load times by preventing external HTTP requests.
Yes. Settings are stored in the WordPress options table and are not affected by plugin updates. You can also export your settings as a JSON backup at any time.
Yes. Network activate the plugin and use the Network Settings page to apply configuration across all sites. You can also manage settings per subsite.
Yes. The plugin removes comment-related blocks (Post Comments, Comments Query Loop) from the block editor inserter so they cannot be added to new posts.
Yes. Yakura Commenti includes 8 WP-CLI commands: wp yakura-commenti status, settings, delete, stats, export, import, log, and reset. Run wp help yakura-commenti for full documentation.