WordPress filter hook

mcp_adapter_execute_ability_capability

Defined by MCP Adapter and fired by 9 plugins in total, running on 250K+ sites between them.

“Filters the capability required to execute abilities.”

How to use mcp_adapter_execute_ability_capability

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'mcp_adapter_execute_ability_capability', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Argument names come from WPVibe's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

9 plugins that fire mcp_adapter_execute_ability_capability

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. WPVibe icon WPVibe100,000+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) includes/class-wpvibe-abilities.php:225
  2. MCP Adapter icon MCP Adapter80,000+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) includes/Abilities/ExecuteAbilityAbility.php:226
  3. wpDataTables icon wpDataTables60,000+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) lib/wordpress/mcp-adapter/includes/Abilities/ExecuteAbilityAbility.php:226
  4. UiChemy icon UiChemy8,000+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) vendor-prefixed/wordpress/mcp-adapter/includes/Abilities/ExecuteAbilityAbility.php:226
  5. ZIP AI icon ZIP AI2,000+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) lib/mcp-adapter/includes/Abilities/ExecuteAbilityAbility.php:226
  6. AcrossAI MCP Manager icon AcrossAI MCP Manager100+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) includes/Abilities/Execute.php:47
  7. ClearPost icon ClearPost80+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) lib/mcp/wordpress/mcp-adapter/includes/Abilities/ExecuteAbilityAbility.php:229
  8. Zorem AI Agent Connector icon Zorem AI Agent Connector70+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) vendor-bundled/mcp-adapter/includes/Abilities/ExecuteAbilityAbility.php:140
  9. Airo WP AI Builder icon Airo WP AI Builder40+ installs apply_filters( 'mcp_adapter_execute_ability_capability', 'read' ) dependencies/wordpress/mcp-adapter/includes/Abilities/ExecuteAbilityAbility.php:140

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.