Easy MCP AI icon
AI Tools

Easy MCP AI hooks reference

  • By Themeisle
  • v2.4.1 New
  • Updated

Easy MCP AI 2.4.1 has 22 actions and 78 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Easy MCP AI fires an action
add_action( 'easy_mcp_ai_change_context_disarming', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value Easy MCP AI is about to use
add_filter( 'easy_mcp_ai_oauth_enabled', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • includes/class-plugin.php line 109 · used in 9 places
    apply_filters( 'easy_mcp_ai_oauth_enabled', \Easy_MCP_AI\Config::get( 'oauth_enabled' ) );
  • includes/admin/class-tool-catalogue.php line 408 · used in 5 places
    apply_filters( 'easy_mcp_ai_requires_approval', $approval_choice, $name, array(), 'explicit' );
  • all_plugins

    filter
    includes/cli-router/class-fetchers.php line 209 · used in 3 places
    apply_filters( 'all_plugins', \get_plugins() );
  • includes/mcp/class-server.php line 100 · used in 3 places
    do_action( 'easy_mcp_ai_change_context_disarming' );
  • includes/cli-router/handlers/class-term-meta-handler.php line 91 · used in 3 places
    apply_filters( 'easy_mcp_ai_term_meta_blocked_key_patterns', array() );
  • includes/tools/woocommerce/class-batch-update-orders.php line 77 · used in 3 places
    apply_filters( 'easy_mcp_ai_wc_batch_soft_cap', 25 );
  • includes/cli-router/handlers/class-plugin-handler.php line 495 · used in 3 places
    apply_filters( 'show_advanced_plugins', true, 'mustuse' );
  • includes/tools/users/class-delete-user-meta.php line 93 · used in 2 places
    apply_filters( 'easy_mcp_ai_user_meta_writable_protected_keys', array() );
  • includes/diagnostics/class-htaccess-plain-routes.php line 133 · used in 2 places
    apply_filters( 'https_local_ssl_verify', false );
  • includes/cli-router/handlers/class-media-handler.php line 860 · used in 2 places
    apply_filters( 'wp_image_maybe_exif_rotate', $orientation, $path );
  • includes/tools/appearance/class-theme-ability-guidance.php line 90
    apply_filters( "{$key}_ai_connect_metadata", array() );
  • includes/cli-router/handlers/class-rewrite-handler.php line 325
    apply_filters( "{$source}_rewrite_rules", $source_rules );
  • includes/tools/acf/class-acf-options-page.php line 359
    do_action( 'acf/options_page/save', $post_id, $page['menu_slug'] ?? '' );
  • includes/cli-router/handlers/class-option-handler.php line 682
    apply_filters( 'allowed_options', $allowed );
  • includes/builders/class-shortcode-adapter.php line 19
    apply_filters( 'content_save_pre', $filtered );
  • includes/tools/appearance/class-customizer-settings.php line 560
    do_action( 'customize_save', $manager );
  • includes/tools/appearance/class-customizer-settings.php line 592
    do_action( 'customize_save_after', $manager );
  • includes/tools/appearance/class-customizer-settings.php line 536
    do_action( 'customize_save_validation_before', $manager );
  • delete_plugin

    action
    includes/tools/plugins/class-delete-plugin.php line 127
    do_action( 'delete_plugin', $plugin );
  • includes/tools/plugins/class-delete-plugin.php line 136
    do_action( 'deleted_plugin', $plugin, $deleted );
  • includes/mcp/class-server.php line 1225
    do_action( 'easy_mcp_ai_after_tool_call', $tool_name, $arguments, $context );
  • includes/tools/media/class-upload-media-from-url.php line 448
    apply_filters( 'easy_mcp_ai_allow_http_media_url', false );
  • includes/mcp/class-transport.php line 834
    apply_filters( 'easy_mcp_ai_allowed_origins', $defaults );
  • includes/mcp/class-server.php line 1070
    do_action( 'easy_mcp_ai_before_tool_call', $tool_name, $hook_arguments, $call_context );
  • includes/tools/blocks/trait-block-tree.php line 361
    apply_filters( 'easy_mcp_ai_block_attribute_schema', $attributes, (string) $name );
  • includes/history/class-change-recorder.php line 1834
    apply_filters( 'easy_mcp_ai_bp_activity_delete_log_cap', 100 );
  • includes/mcp/class-server.php line 1035
    do_action( 'easy_mcp_ai_change_context_armed' );
  • includes/history/class-change-redactor.php line 142
    apply_filters( 'easy_mcp_ai_change_log_address_blocks', $list );
  • includes/history/class-change-redactor.php line 153
    apply_filters( 'easy_mcp_ai_change_log_address_personal_keys', $list );
  • includes/history/class-change-db-interceptor.php line 656
    apply_filters( 'easy_mcp_ai_change_log_db_held_bytes', 8 * 1024 * 1024 );
  • includes/history/class-change-db-interceptor.php line 646
    apply_filters( 'easy_mcp_ai_change_log_db_rows_per_call', \Easy_MCP_AI\Config::get( 'change_log_db_rows_per_call' ) );
  • includes/history/class-change-db-interceptor.php line 241
    apply_filters( 'easy_mcp_ai_change_log_db_table_denylist', self::$table_denylist );
  • includes/history/class-change-external-intent.php line 63
    apply_filters( 'easy_mcp_ai_change_log_is_write_ability', $is_write, $tool_name );
  • includes/history/class-change-recorder.php line 99
    apply_filters( 'easy_mcp_ai_change_log_option_allowlist', self::$option_allowlist );
  • includes/history/class-change-recorder.php line 113
    apply_filters( 'easy_mcp_ai_change_log_option_denylist', array_merge( self::$option_churn_denylist, \Easy_MCP_AI\Cache\Cache_Noise::OPTIONS ) );
  • includes/history/class-change-redactor.php line 173
    apply_filters( 'easy_mcp_ai_change_log_sensitive_option_names', self::$sensitive_option_names );
  • includes/history/class-change-redactor.php line 68
    apply_filters( 'easy_mcp_ai_change_log_table_personal_columns', $map );
  • includes/tools/class-base-tool.php line 797
    do_action( 'easy_mcp_ai_clear_page_cache', $post_ids, $urls );
  • includes/class-client-ip.php line 35
    apply_filters( 'easy_mcp_ai_client_ip', $remote );
  • includes/class-client-ip.php line 128
    apply_filters( 'easy_mcp_ai_client_ip_header', $name );
  • includes/compat/class-compat-registry.php line 42
    apply_filters( 'easy_mcp_ai_compat_shim_enabled', true, $id, $tool );
  • includes/diagnostics/class-check-conflicts.php line 749
    apply_filters( 'easy_mcp_ai_diagnostics_benign_rest_auth_classes', $list );
  • includes/diagnostics/class-check-conflicts.php line 656
    apply_filters( 'easy_mcp_ai_diagnostics_known_cache_plugins', self::KNOWN_CACHE_PLUGINS );
  • includes/tools/history/class-history-list.php line 61
    apply_filters( 'easy_mcp_ai_history_query_scope', array(), $args, (int) \get_current_user_id(), $can_view_all );
  • includes/functions.php line 10
    apply_filters( 'easy_mcp_ai_is_mcp_request', $is_mcp_request );
  • includes/functions.php line 16
    apply_filters( 'easy_mcp_ai_is_tool_call', null !== $tool_name, $tool_name );
  • includes/admin/class-app-page.php line 127
    apply_filters( 'easy_mcp_ai_kit_page', '' !== $chunk && is_readable( $chunk ) );
  • includes/tools/media/class-get-media.php line 148
    apply_filters( 'easy_mcp_ai_media_file_max_bytes', self::MAX_FILE_BYTES );
  • includes/oauth/class-oauth-token-manager.php line 76
    apply_filters( 'easy_mcp_ai_oauth_access_token_ttl', $configured, $wp_user_id, $client_id );
  • includes/oauth/class-client-metadata-support.php line 43
    apply_filters( 'easy_mcp_ai_oauth_cimd', $on );
  • includes/oauth/class-client-metadata-support.php line 167
    apply_filters( 'easy_mcp_ai_oauth_cimd_probe_urls', self::PROBE_URLS );
  • includes/class-plugin.php line 710
    apply_filters( 'easy_mcp_ai_oauth_client_retention', $days );
  • includes/tools/plugins/trait-package-source.php line 199
    apply_filters( 'easy_mcp_ai_package_max_bytes', $default, $kind );
  • includes/tools/plugins/trait-package-source.php line 204
    apply_filters( 'easy_mcp_ai_package_url_hosts', array() );
  • includes/tools/blocks/class-update-post-blocks.php line 181
    do_action( 'easy_mcp_ai_post_blocks_saved', $post_id, $changes );
  • includes/tools/class-base-tool.php line 793
    do_action( 'easy_mcp_ai_post_changed', $post_id, $context );
  • includes/tools/posts/class-get-post-full.php line 261
    apply_filters( 'easy_mcp_ai_post_full_max_meta_keys', self::DEFAULT_MAX_META_KEYS );
  • includes/tools/posts/class-get-post-full.php line 344
    apply_filters( 'easy_mcp_ai_post_full_max_taxonomies', self::DEFAULT_MAX_TAXONOMIES );
  • includes/tools/posts/class-get-post-full.php line 317
    apply_filters( 'easy_mcp_ai_post_full_max_terms_per_taxonomy', self::DEFAULT_MAX_TERMS_PER_TAXONOMY );
  • includes/tools/posts/class-replace-in-post.php line 260
    apply_filters( 'easy_mcp_ai_replace_in_post_allow_regex', true );
  • includes/tools/class-base-tool.php line 1102
    apply_filters( 'easy_mcp_ai_response_noise_keys', self::RESPONSE_NOISE_KEYS );
  • includes/tasks/class-task-scheduler.php line 19
    apply_filters( 'easy_mcp_ai_tasks_use_action_scheduler', true );
  • includes/mcp/class-server.php line 1163
    do_action( 'easy_mcp_ai_tool_mutated', $tool_name, $this->redact_for_tool( $tool_name, $arguments ), $result );
  • includes/class-client-ip.php line 92
    apply_filters( 'easy_mcp_ai_trusted_proxies', $entries );
  • includes/auth/class-connect-policy.php line 57
    apply_filters( 'easy_mcp_ai_user_can_connect', $allowed, $user, $channel );
  • includes/tools/users/trait-user-meta-auth-guard.php line 33
    apply_filters( 'easy_mcp_ai_user_meta_blocked_key_patterns', array() );
  • includes/tools/users/class-get-user-meta.php line 115
    apply_filters( 'easy_mcp_ai_user_meta_readable_protected_keys', array( 'wp_user-settings', 'wp_user-settings-time' ) );
  • edited_term

    action
    includes/tools/seo/yoast/class-yoast-update-term-seo.php line 150
    do_action( 'edited_term', (int) $term->term_id, (int) $term->term_taxonomy_id, $term->taxonomy, array() );
  • includes/builders/class-elementor-adapter.php line 857
    apply_filters( 'elementor/document/save/data', array( 'elements' => $data ), $document );
  • includes/cli-router/handlers/class-embed-handler.php line 358
    apply_filters( 'embed_cache_oembed_types', \get_post_types( array( 'show_ui' => true ) ) );
  • includes/cli-router/handlers/class-option-handler.php line 668
    apply_filters( 'enable_post_by_email_configuration', true );
  • et_save_post

    action
    includes/builders/class-divi-access.php line 120
    do_action( 'et_save_post', $post_id );
  • includes/builders/class-divi-access.php line 121
    do_action( 'et_update_post', $post_id );
  • includes/cli-router/handlers/class-media-handler.php line 798
    apply_filters( 'fallback_intermediate_image_sizes', array( 'thumbnail', 'medium', 'large' ), $metadata );
  • includes/cli-router/handlers/class-super-admin-handler.php line 122
    do_action( 'grant_super_admin', (int) $user->ID );
  • includes/cli-router/handlers/class-super-admin-handler.php line 155
    do_action( 'granted_super_admin', (int) $user_id );
  • includes/cli-router/handlers/class-media-handler.php line 817
    apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $att_id );
  • includes/diagnostics/class-check-conflicts.php line 595
    apply_filters( 'litespeed_conf', 'cache-exc' );
  • includes/cache/class-page-cache-opt-out.php line 41
    do_action( 'litespeed_control_set_nocache', 'easy-mcp-ai: MCP and OAuth responses are never stored' );
  • includes/cli-router/handlers/class-rewrite-handler.php line 328
    apply_filters( 'post_tag_rewrite_rules', $source_rules );
  • includes/cli-router/handlers/class-embed-handler.php line 503
    apply_filters( 'pre_oembed_result', null, $url, $oembed_args );
  • includes/builders/class-shortcode-adapter.php line 18
    apply_filters( 'pre_post_content', wp_slash( $content ) );
  • includes/cli-router/handlers/class-comment-handler.php line 111
    apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id );
  • includes/cli-router/handlers/class-super-admin-handler.php line 188
    do_action( 'revoke_super_admin', (int) $user->ID );
  • includes/cli-router/handlers/class-super-admin-handler.php line 263
    do_action( 'revoked_super_admin', (int) $user_id );
  • includes/cli-router/handlers/class-plugin-handler.php line 133
    apply_filters( 'show_network_active_plugins', \current_user_can( 'manage_network_plugins' ) );
  • includes/tools/site-health/class-get-site-health.php line 164
    apply_filters( 'site_status_test_result', call_user_func( $callback ) );
  • includes/cli-router/handlers/class-site-handler.php line 997
    apply_filters( 'subdirectory_reserved_names', self::RESERVED_FALLBACK );
  • the_title

    filter
    includes/tools/menus/class-navigation-labels.php line 28
    apply_filters( 'the_title', (string) $post->post_title, (int) $post->ID );
  • user_has_cap

    filter
    includes/cli-router/class-capability-grants.php line 30
    apply_filters( 'user_has_cap', $allcaps, array( $cap ), array( $cap, $user_id ), $user );
  • includes/tools/woocommerce/class-wc-logs.php line 106
    apply_filters( 'woocommerce_log_directory', $uploads['basedir'] . '/wc-logs/' );
  • includes/tools/media/class-edit-media-image.php line 443
    apply_filters( 'wp_edited_image_metadata', $meta, $new_id, $media_id );
  • includes/tools/media/class-regenerate-media-sizes.php line 322
    apply_filters( 'wp_get_missing_image_subsizes', array_diff_key( $fits, $have ), $meta, $media_id );
  • includes/cli-router/adapters/class-menu-adapter.php line 343
    apply_filters( 'wp_get_nav_menu_object', $menu, $arg );
  • includes/tools/plugins/trait-package-guard.php line 280
    apply_filters( 'wp_plugin_dependencies_slug', trim( $slug ) );
  • includes/tools/class-base-tool.php line 896
    apply_filters( 'wp_query_search_exclusion_prefix', '-' );
  • includes/cache/class-post-urls.php line 123
    apply_filters( 'wpml_element_trid', null, (int) $post->ID, $type );
  • includes/cache/class-post-urls.php line 122
    apply_filters( 'wpml_element_type', $post->post_type );
  • includes/cache/class-post-urls.php line 125
    apply_filters( 'wpml_get_element_translations', null, $trid, $type, true );
  • wpml_setting

    filter
    includes/cache/class-url-guard.php line 140
    apply_filters( 'wpml_setting', array(), 'language_domains' );

Generated from Easy MCP AI's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: