Get comment status is a WordPress ability from Disable Comments – Remove Comments & Stop Spam [Multi-Site Support] — usable via Easy MCP AI, which connects Claude, ChatGPT, and any AI assistant to your site.

Install Free Plugin →

Get comment status

Read-only

Report where comments are currently disabled on this site: the overall status, affected post types, and multisite network scope.

Requires the Disable Comments plugin on WordPress 6.9+ for the Abilities API (abilities are registered only when the wp_register_ability() function exists). The ability is gated by the caller holding the 'manage_options' capability (administrator).

What it does

This ability reports where comments are currently disabled on the site: an overall status summary ("all", "none", "posts", "pages", "posts,pages", "multiple", or a single custom post type slug), a stricter boolean for whether every comment-capable post type (including non-public ones) is actually closed, the list of post types with comments disabled versus the full list of post types that support comments, whether REST API and XML-RPC comment endpoints are separately blocked, whether one or more user roles are exempted from the disabling and whether the current requesting user is one of them, and multisite details (whether the plugin is network-active and whether a super admin has forced one set of settings across the whole network). It takes no input, makes no changes, and reads only through the plugin's own public API (Disable_Comments::get_instance() and its accessor methods) so the ability cannot drift from the plugin's internal state. Call this before creating, moderating, or querying comments (especially over REST or XML-RPC) so an AI assistant doesn't assume comments are open when the site has actually closed them, or vice versa.

See it in action

You ask your AI assistant

"Are comments disabled on this site right now, and does that apply to every post type or just some of them?"

Returns

An object with 'status' (summary string such as all, none, posts, pages, posts,pages, multiple, or a custom post type slug), 'comments_disabled_everywhere' (boolean, true only when no comment-capable post type, including non-public ones, is left open), 'allowed_comment_types' (array of comment type slugs, e.g. WordPress 6.9+ editor notes, that stay enabled regardless), 'disabled_post_types' and 'available_post_types' (arrays of post type slugs), 'is_network_active' and 'is_network_wide_setting' (booleans for multisite scope), 'rest_api_comments_blocked' and 'xmlrpc_comments_blocked' (booleans for endpoint-level blocking), 'role_exclusion_enabled' and 'excluded_for_current_user' (booleans describing per-role exemptions), and 'plugin_version' (the responding plugin's version string).

Permission

The current user must have the 'manage_options' capability (administrator).

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates — be the first to know what's next.

No spam, unsubscribe anytime.