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.
// 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
-
easy_mcp_ai_oauth_enabled
filterapply_filters( 'easy_mcp_ai_oauth_enabled', \Easy_MCP_AI\Config::get( 'oauth_enabled' ) ); -
apply_filters( 'easy_mcp_ai_requires_approval', $approval_choice, $name, array(), 'explicit' ); -
all_plugins
filterapply_filters( 'all_plugins', \get_plugins() ); -
do_action( 'easy_mcp_ai_change_context_disarming' ); -
apply_filters( 'easy_mcp_ai_term_meta_blocked_key_patterns', array() ); -
apply_filters( 'easy_mcp_ai_wc_batch_soft_cap', 25 ); -
show_advanced_plugins
filterapply_filters( 'show_advanced_plugins', true, 'mustuse' ); -
apply_filters( 'easy_mcp_ai_user_meta_writable_protected_keys', array() ); -
https_local_ssl_verify
filterapply_filters( 'https_local_ssl_verify', false ); -
wp_image_maybe_exif_rotate
filterapply_filters( 'wp_image_maybe_exif_rotate', $orientation, $path ); -
{$key}_ai_connect_metadata
filterapply_filters( "{$key}_ai_connect_metadata", array() ); -
{$source}_rewrite_rules
filterapply_filters( "{$source}_rewrite_rules", $source_rules ); -
acf/options_page/save
actiondo_action( 'acf/options_page/save', $post_id, $page['menu_slug'] ?? '' ); -
allowed_options
filterapply_filters( 'allowed_options', $allowed ); -
content_save_pre
filterapply_filters( 'content_save_pre', $filtered ); -
customize_save
actiondo_action( 'customize_save', $manager ); -
customize_save_after
actiondo_action( 'customize_save_after', $manager ); -
do_action( 'customize_save_validation_before', $manager ); -
delete_plugin
actiondo_action( 'delete_plugin', $plugin ); -
deleted_plugin
actiondo_action( 'deleted_plugin', $plugin, $deleted ); -
easy_mcp_ai_after_tool_call
actiondo_action( 'easy_mcp_ai_after_tool_call', $tool_name, $arguments, $context ); -
apply_filters( 'easy_mcp_ai_allow_http_media_url', false ); -
easy_mcp_ai_allowed_origins
filterapply_filters( 'easy_mcp_ai_allowed_origins', $defaults ); -
easy_mcp_ai_before_tool_call
actiondo_action( 'easy_mcp_ai_before_tool_call', $tool_name, $hook_arguments, $call_context ); -
apply_filters( 'easy_mcp_ai_block_attribute_schema', $attributes, (string) $name ); -
apply_filters( 'easy_mcp_ai_bp_activity_delete_log_cap', 100 ); -
do_action( 'easy_mcp_ai_change_context_armed' ); -
apply_filters( 'easy_mcp_ai_change_log_address_blocks', $list ); -
apply_filters( 'easy_mcp_ai_change_log_address_personal_keys', $list ); -
apply_filters( 'easy_mcp_ai_change_log_db_held_bytes', 8 * 1024 * 1024 ); -
apply_filters( 'easy_mcp_ai_change_log_db_rows_per_call', \Easy_MCP_AI\Config::get( 'change_log_db_rows_per_call' ) ); -
apply_filters( 'easy_mcp_ai_change_log_db_table_denylist', self::$table_denylist ); -
apply_filters( 'easy_mcp_ai_change_log_is_write_ability', $is_write, $tool_name ); -
apply_filters( 'easy_mcp_ai_change_log_option_allowlist', self::$option_allowlist ); -
apply_filters( 'easy_mcp_ai_change_log_option_denylist', array_merge( self::$option_churn_denylist, \Easy_MCP_AI\Cache\Cache_Noise::OPTIONS ) ); -
apply_filters( 'easy_mcp_ai_change_log_sensitive_option_names', self::$sensitive_option_names ); -
apply_filters( 'easy_mcp_ai_change_log_table_personal_columns', $map ); -
easy_mcp_ai_clear_page_cache
actiondo_action( 'easy_mcp_ai_clear_page_cache', $post_ids, $urls ); -
easy_mcp_ai_client_ip
filterapply_filters( 'easy_mcp_ai_client_ip', $remote ); -
easy_mcp_ai_client_ip_header
filterapply_filters( 'easy_mcp_ai_client_ip_header', $name ); -
apply_filters( 'easy_mcp_ai_compat_shim_enabled', true, $id, $tool ); -
apply_filters( 'easy_mcp_ai_diagnostics_benign_rest_auth_classes', $list ); -
apply_filters( 'easy_mcp_ai_diagnostics_known_cache_plugins', self::KNOWN_CACHE_PLUGINS ); -
apply_filters( 'easy_mcp_ai_history_query_scope', array(), $args, (int) \get_current_user_id(), $can_view_all ); -
easy_mcp_ai_is_mcp_request
filterapply_filters( 'easy_mcp_ai_is_mcp_request', $is_mcp_request ); -
easy_mcp_ai_is_tool_call
filterapply_filters( 'easy_mcp_ai_is_tool_call', null !== $tool_name, $tool_name ); -
easy_mcp_ai_kit_page
filterapply_filters( 'easy_mcp_ai_kit_page', '' !== $chunk && is_readable( $chunk ) ); -
apply_filters( 'easy_mcp_ai_media_file_max_bytes', self::MAX_FILE_BYTES ); -
apply_filters( 'easy_mcp_ai_oauth_access_token_ttl', $configured, $wp_user_id, $client_id ); -
easy_mcp_ai_oauth_cimd
filterapply_filters( 'easy_mcp_ai_oauth_cimd', $on ); -
apply_filters( 'easy_mcp_ai_oauth_cimd_probe_urls', self::PROBE_URLS ); -
apply_filters( 'easy_mcp_ai_oauth_client_retention', $days ); -
apply_filters( 'easy_mcp_ai_package_max_bytes', $default, $kind ); -
apply_filters( 'easy_mcp_ai_package_url_hosts', array() ); -
do_action( 'easy_mcp_ai_post_blocks_saved', $post_id, $changes ); -
easy_mcp_ai_post_changed
actiondo_action( 'easy_mcp_ai_post_changed', $post_id, $context ); -
apply_filters( 'easy_mcp_ai_post_full_max_meta_keys', self::DEFAULT_MAX_META_KEYS ); -
apply_filters( 'easy_mcp_ai_post_full_max_taxonomies', self::DEFAULT_MAX_TAXONOMIES ); -
apply_filters( 'easy_mcp_ai_post_full_max_terms_per_taxonomy', self::DEFAULT_MAX_TERMS_PER_TAXONOMY ); -
apply_filters( 'easy_mcp_ai_replace_in_post_allow_regex', true ); -
apply_filters( 'easy_mcp_ai_response_noise_keys', self::RESPONSE_NOISE_KEYS ); -
apply_filters( 'easy_mcp_ai_tasks_use_action_scheduler', true ); -
easy_mcp_ai_tool_mutated
actiondo_action( 'easy_mcp_ai_tool_mutated', $tool_name, $this->redact_for_tool( $tool_name, $arguments ), $result ); -
easy_mcp_ai_trusted_proxies
filterapply_filters( 'easy_mcp_ai_trusted_proxies', $entries ); -
easy_mcp_ai_user_can_connect
filterapply_filters( 'easy_mcp_ai_user_can_connect', $allowed, $user, $channel ); -
apply_filters( 'easy_mcp_ai_user_meta_blocked_key_patterns', array() ); -
apply_filters( 'easy_mcp_ai_user_meta_readable_protected_keys', array( 'wp_user-settings', 'wp_user-settings-time' ) ); -
edited_term
actiondo_action( 'edited_term', (int) $term->term_id, (int) $term->term_taxonomy_id, $term->taxonomy, array() ); -
elementor/document/save/data
filterapply_filters( 'elementor/document/save/data', array( 'elements' => $data ), $document ); -
embed_cache_oembed_types
filterapply_filters( 'embed_cache_oembed_types', \get_post_types( array( 'show_ui' => true ) ) ); -
apply_filters( 'enable_post_by_email_configuration', true ); -
et_save_post
actiondo_action( 'et_save_post', $post_id ); -
et_update_post
actiondo_action( 'et_update_post', $post_id ); -
apply_filters( 'fallback_intermediate_image_sizes', array( 'thumbnail', 'medium', 'large' ), $metadata ); -
grant_super_admin
actiondo_action( 'grant_super_admin', (int) $user->ID ); -
granted_super_admin
actiondo_action( 'granted_super_admin', (int) $user_id ); -
apply_filters( 'intermediate_image_sizes_advanced', $sizes, $metadata, $att_id ); -
litespeed_conf
filterapply_filters( 'litespeed_conf', 'cache-exc' ); -
do_action( 'litespeed_control_set_nocache', 'easy-mcp-ai: MCP and OAuth responses are never stored' ); -
post_tag_rewrite_rules
filterapply_filters( 'post_tag_rewrite_rules', $source_rules ); -
pre_oembed_result
filterapply_filters( 'pre_oembed_result', null, $url, $oembed_args ); -
pre_post_content
filterapply_filters( 'pre_post_content', wp_slash( $content ) ); -
apply_filters( 'pre_wp_update_comment_count_now', null, $old, $post_id ); -
revoke_super_admin
actiondo_action( 'revoke_super_admin', (int) $user->ID ); -
revoked_super_admin
actiondo_action( 'revoked_super_admin', (int) $user_id ); -
show_network_active_plugins
filterapply_filters( 'show_network_active_plugins', \current_user_can( 'manage_network_plugins' ) ); -
site_status_test_result
filterapply_filters( 'site_status_test_result', call_user_func( $callback ) ); -
subdirectory_reserved_names
filterapply_filters( 'subdirectory_reserved_names', self::RESERVED_FALLBACK ); -
the_title
filterapply_filters( 'the_title', (string) $post->post_title, (int) $post->ID ); -
user_has_cap
filterapply_filters( 'user_has_cap', $allcaps, array( $cap ), array( $cap, $user_id ), $user ); -
woocommerce_log_directory
filterapply_filters( 'woocommerce_log_directory', $uploads['basedir'] . '/wc-logs/' ); -
wp_edited_image_metadata
filterapply_filters( 'wp_edited_image_metadata', $meta, $new_id, $media_id ); -
apply_filters( 'wp_get_missing_image_subsizes', array_diff_key( $fits, $have ), $meta, $media_id ); -
wp_plugin_dependencies_slug
filterapply_filters( 'wp_plugin_dependencies_slug', trim( $slug ) ); -
apply_filters( 'wp_query_search_exclusion_prefix', '-' ); -
wpml_element_trid
filterapply_filters( 'wpml_element_trid', null, (int) $post->ID, $type ); -
wpml_element_type
filterapply_filters( 'wpml_element_type', $post->post_type ); -
apply_filters( 'wpml_get_element_translations', null, $trid, $type, true ); -
wpml_setting
filterapply_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: