WordPress filter hook
mcp_adapter_validation_enabled
Fired by 7 WordPress plugins, running on 70K+ sites between them.
“Filters whether MCP protocol validation is enabled for a server.”
How to use mcp_adapter_validation_enabled
It's a filter: your callback receives the value and 2 more arguments, and must return the (changed) value.
Add this to your theme's functions.php or a small custom plugin:
add_filter( 'mcp_adapter_validation_enabled', function( $value, $server_id, $object ) {
// Change $value here.
return $value;
}, 10, 3 );Argument names come from wpDataTables's source. Other plugins may pass different values: check the call in the plugin you're targeting below.
7 plugins that fire mcp_adapter_validation_enabled
Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.
-
wpDataTables60,000+ installs
apply_filters( 'mcp_adapter_validation_enabled', false, $this->server_id, $this )lib/wordpress/mcp-adapter/includes/Core/McpServer.php:168 -
UiChemy8,000+ installs
apply_filters( 'mcp_adapter_validation_enabled', false, $this->server_id, $this )vendor-prefixed/wordpress/mcp-adapter/includes/Core/McpServer.php:168 -
ZIP AI2,000+ installs
apply_filters( 'mcp_adapter_validation_enabled', false, $this->server_id, $this )lib/mcp-adapter/includes/Core/McpServer.php:168 -
ClearPost80+ installs
apply_filters( 'mcp_adapter_validation_enabled', false, $this->server_id, $this )lib/mcp/wordpress/mcp-adapter/includes/Core/McpServer.php:168 -
Zorem AI Agent Connector70+ installs
apply_filters( 'mcp_adapter_validation_enabled', false )vendor-bundled/mcp-adapter/includes/Core/McpServer.php:155 -
Airo WP AI Builder40+ installs
apply_filters( 'mcp_adapter_validation_enabled', false )dependencies/wordpress/mcp-adapter/includes/Core/McpServer.php:155 -
Shim MCP10+ installs
apply_filters( 'mcp_adapter_validation_enabled', false )includes/Server/McpServer.php:155
Need a customisation built on this hook?
Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.