MCP Server for WordPress 2.0.4 has 30 actions and 166 filters, read directly from its source code on Nov 18, 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 MCP Server for WordPress fires an action
add_action( 'awfah_bulk_job_done', function( $id ) {
// Your code runs here.
}, 10, 1 );
// Change a value MCP Server for WordPress is about to use
add_filter( 'awfah_error_webhook_dispatch', function( $value, $arg2, $settings ) {
// Change $value here.
return $value;
}, 10, 3 );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
-
/** * Dispatch a test webhook. Pro plugin hooks into this filter. */ apply_filters( 'awfah_error_webhook_dispatch', false, [ $test_error ], $settings ); -
/** * Tracking interval */ apply_filters( "{$this->client->getSlug()}_tracking_interval", '-1 minute' ); -
/** * After request to api server. */ do_action( "{$this->getSlug()}_after_request", $response, $route ); -
/** * After request to api server to route. */ do_action( "{$this->getSlug()}_after_request_{$route}", $response, $route ); -
/** * before request to api server. */ do_action( "{$this->getSlug()}_before_request", $params, $route, $headers, $this->clientVersion, $url ); -
/** * before request to api server to route. */ do_action( "{$this->getSlug()}_before_request_{$route}", $params, $route, $headers, $url ); -
/** * Request Blocking mode. Set it to true for debugging the response with after * request action. */ apply_filters( "{$this->getSlug()}_request_blocking_mode", $blocking ); -
/** * API EndPoint */ apply_filters( "{$this->slug}_AtlasAiDev_API_EndPoint", $this->API_EndPoint, $this->apiVersion, $this->clientVersion ); -
/** * Filter Final API URL for request */ apply_filters( "{$this->slug}_AtlasAiDev_API_URL", $URL, $this->API_EndPoint, $route, $this->apiVersion, $this->clientVersion ); -
/** * Filter Request Route string */ apply_filters( "{$this->slug}_request_route", $route ); -
/** * Support Page URL */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Page_URL", false ); -
/** * Set Support Ticket Ajax Error Response. */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Request_Ajax_Error_Response", false, $_REQUEST ); -
AtlasAiDev_{$projectSlug}_Support_Request_Ajax_Success_Response
filter Copy link Customise this hook/** * Set Ajax Success Response for Support Ticket Submission */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Request_Ajax_Success_Response", false, $_REQUEST ); -
/** * Set Support Ticket Template For sending the email query. */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Ticket_Email_Template", false ); -
/** * Set Ticket Recipient Email */ apply_filters( "AtlasAiDev_{$projectSlug}_Support_Ticket_Recipient_Email", false ); -
/** * Allow Pro or third-party plugins to add their ability classes. */ apply_filters( 'awfah_ability_classes', $ability_classes ); -
/** * Filters an AI generation request of one of the plugin's abilities just * before it is sent to the provider. */ apply_filters( 'awfah_ability_generation_request', $request, $input, 'awfah-content/generate-content', [ 'mode' => $mode, 'topic' => $topic, 'post_type' => $post_type, ] ); -
/** * Filters the input schema of one of the plugin's abilities. */ apply_filters( 'awfah_ability_input_schema', $ability['input_schema'], $ability['id'] ); -
/** * Filters the data logged for an ability execution. */ apply_filters( 'awfah_ability_log_data', $data, $ability_name, $result ); -
/** * Filter the ability-to-module map. */ apply_filters( 'awfah_ability_module_map', $map ); -
/** * Namespaces whose display name we know. Everything else is humanised from the * namespace itself, which is imperfect but honest. */ apply_filters( 'awfah_ability_owner_map', [ 'core' => [ 'slug' => 'wordpress-core', 'name' => __( 'WordPress core', 'ai-workflow-automation-ai-agent-hub' ) ], 'wp' => [ 'slug' => 'wordpress-core', 'name' => __( 'WordPress core', 'ai-workflow-automation-ai-agent-hub' ) ], 'ai' => [ 'slug' => 'wordpress-ai', 'name' => __( 'AI (WordPress feature plugin)', 'ai-workflow-automation-ai-agent-hub' ) ], 'woocommerce' => [ 'slug' => 'woocommerce... ); -
/** * Whether AI apps must ask the person before a destructive tool runs. */ apply_filters( 'awfah_ask_before_deleting', $on ); -
/** * Execute the auto-fix. Pro plugin hooks into this filter. */ apply_filters( 'awfah_auto_fix_execute', null, $hash ); -
/** * Page builders whose tools are on. Used by tests and add-ons. */ apply_filters( 'awfah_builders_active', $out ); -
/** * A bulk job finished. */ do_action( 'awfah_bulk_job_done', $id ); -
/** * Bulk operations. See the class doc for the keys. */ apply_filters( 'awfah_bulk_operations', Product_Operations::all() ); -
/** * Most writes one AI app may make in a minute before it is paused. 0 = off. */ apply_filters( 'awfah_burst_guard_writes_per_minute', self::DEFAULT_WRITES_PER_MINUTE ); -
/** * Actions that "Clear every cache" runs (each only while active and not * switched off). */ apply_filters( 'awfah_cache_actions', $ids ); -
/** * Filter whether ability editing is available on this site. */ apply_filters( 'awfah_can_edit_abilities', false ); -
/** * A checkpoint was made. */ do_action( 'awfah_checkpoint_created', $id, $kind, $reason ); -
/** * Largest checkpoint AtlasMCP makes, before compression. Default 512 MB. */ apply_filters( 'awfah_checkpoint_max_bytes', 512 * 1024 * 1024 ); -
/** * A checkpoint was restored. */ do_action( 'awfah_checkpoint_restored', $id, (int) $safety ); -
/** * Days AtlasMCP keeps checkpoints. The newest 10 are always kept. */ apply_filters( 'awfah_checkpoint_retention_days', self::RETENTION_DAYS ); -
/** * Whether this run comes from somewhere a person can be asked. Default: the * MCP server. */ apply_filters( 'awfah_confirm_applies', $context->via_mcp, $context ); -
/** * Whether a write must wait for the person's yes in the chat. */ apply_filters( 'awfah_confirm_required', $required, $context ); -
/** * The shop's shopper numbers for the Connections screen (Pro, AI-47). */ apply_filters( 'awfah_connections_shop_summary', null ); -
/** * Filters the shapes the content tool offers in the editor. */ apply_filters( 'awfah_content_structures', $structures, $post_type ); -
/** * After the dashboard's scripts are enqueued: an add-on enqueues its own * bundle here, depending on $handle, and fills the dashboard's slots through * wp.hooks with window.AtlasMCP.dashboard (AI-66). */ do_action( 'awfah_dashboard_enqueue_scripts', 'ai-workflow-automation-ai-agent-hub-admin' ); -
/** * Tables a read-only query may read. */ apply_filters( 'awfah_db_select_tables', $out ); -
/** * Fires after one of the editor experiment bundles is enqueued, in the block * editor or on a Classic Editor screen. */ do_action( 'awfah_editor_experiments_enqueue_scripts', $handle ); -
/** * Filter: generate an AI-powered human-readable solution for an error. */ apply_filters( 'awfah_error_email_ai_solution', '', $error_data ); -
/** * Generate a fix command for the error email. */ apply_filters( 'awfah_error_email_fix_command', [ 'command' => $default_command, 'instruction' => __( 'Copy this and paste into any AI assistant to get help fixing this error.', 'ai-workflow-automation-ai-agent-hub' ), ], $error ); -
/** * Whether new content made by an AI app starts as a draft. */ apply_filters( 'awfah_force_draft', is_array( $stored ) && ! empty( $stored[ self::FORCE_DRAFT_KEY ] ) ); -
/** * What no AI app may do. Add an option, a plugin or a path; true/false the * user locks. */ apply_filters( 'awfah_hard_locks', $locks ); -
/** * Replace the loopback check (tests, hosts with their own health endpoint). */ apply_filters( 'awfah_health_check', null ); -
/** * Safety rows of the connection health check. */ apply_filters( 'awfah_health_safety_results', $rows ); -
/** * Whether every change from an AI app waits for the person's answer. */ apply_filters( 'awfah_hold_for_preview', is_array( $stored ) && ! empty( $stored[ self::HOLD_KEY ] ) ); -
/** * Image libraries find-images searches. Each: label, ready fn(): bool, search * fn( string $query, int $per_page, int $page ): array|WP_Error of items, get * fn( string $id ): array|WP_Error (one item). An item is the shape of * normalize_*(). */ apply_filters( 'awfah_image_sources', $builtin ); -
/** * Days AtlasMCP keeps its change history (Pro raises it). */ apply_filters( 'awfah_journal_retention_days', self::DEFAULT_RETENTION_DAYS ); -
/** * A change by a tool was recorded (AI-99: live reload listens). */ do_action( 'awfah_journal_row_added', (int) $wpdb->insert_id, $context, $refused ? 'refused' : ( $failed ? 'failed' : 'done' ) ); -
/** * Whether a username and password may get a JWT here (AI-102). A two-factor * plugin that only guards the login form can return false (or a WP_Error). */ apply_filters( 'awfah_jwt_allow_password_login', true, $user ); -
/** * Filter the maximum JWT token expiration time. */ apply_filters( 'awfah_jwt_max_expiration_time', self::JWT_ACCESS_EXP_MAX_DEFAULT ); -
/** * Whether open pages reload or show a note after an AI app changes the site. */ apply_filters( 'awfah_live_reload', $on ); -
/** * Error codes that mean a hard limit refused the change. */ apply_filters( 'awfah_lock_error_codes', [ 'awfah_hard_lock', 'awfah_locked', 'awfah_download_host' ] ); -
/** * Refuse an add-on's tool input for a hard-lock reason ('' = allowed). */ apply_filters( 'awfah_lock_input_refusal', '', $context ); -
/** * Filters whether MCP tool calls are written to the AI request log. */ apply_filters( 'awfah_log_mcp_tool_calls', ! empty( $settings['log_tool_calls'] ) ); -
/** * Filters whether the default MCP server should be created. */ apply_filters( 'awfah_mcp_adapter_create_default_server', true ); -
/** * Filters the default MCP server configuration. */ apply_filters( 'awfah_mcp_adapter_default_server_config', $wordpress_defaults ); -
/** * Filters the default user capability required for MCP transport access. */ apply_filters( 'awfah_mcp_adapter_default_transport_permission_user_capability', 'read', $context ); -
/** * Filters the capability required to discover available abilities. */ apply_filters( 'awfah_mcp_adapter_discover_abilities_capability', 'read' ); -
/** * Filters whether the STDIO transport is enabled. */ apply_filters( 'awfah_mcp_adapter_enable_stdio_transport', true ); -
/** * Filters the capability required to execute abilities. */ apply_filters( 'awfah_mcp_adapter_execute_ability_capability', 'read' ); -
/** * Filters the capability required to get ability information. */ apply_filters( 'awfah_mcp_adapter_get_ability_info_capability', 'read' ); -
/** * Fires after the MCP Adapter has been initialized. */ do_action( 'awfah_mcp_adapter_init', $this ); -
/** * Filters the initialize response before returning to the client. */ apply_filters( 'awfah_mcp_adapter_initialize_response', $result, $this->mcp, $schema ); -
/** * Filters whether component registration events should be recorded for * observability. */ apply_filters( 'awfah_mcp_adapter_observability_record_component_registration', false, $this->mcp_server->get_server_id(), $this->mcp_server ); -
/** * Filters prompt arguments before execution. */ apply_filters( 'awfah_mcp_adapter_pre_prompt_get', $arguments, $prompt_name, $mcp_prompt, $this->mcp ); -
/** * Filters resource parameters before execution, or short-circuits execution * entirely. */ apply_filters( 'awfah_mcp_adapter_pre_resource_read', $request_params, $uri, $mcp_resource, $this->mcp ); -
/** * Filters tool arguments before execution, or short-circuits execution * entirely. */ apply_filters( 'awfah_mcp_adapter_pre_tool_call', $args, $tool_name, $mcp_tool, $this->mcp ); -
/** * Filters the prompt execution result before normalization. */ apply_filters( 'awfah_mcp_adapter_prompt_get_result', $result, $arguments, $prompt_name, $mcp_prompt, $this->mcp ); -
/** * Filters the MCP prompt name derived from an ability. */ apply_filters( 'awfah_mcp_adapter_prompt_name', $sanitized_name, $this->ability ); -
/** * Filters the list of prompts before returning to the client. */ apply_filters( 'awfah_mcp_adapter_prompts_list', $prompts, $this->mcp, $schema ); -
/** * Filters the MCP resource name derived from an ability. */ apply_filters( 'awfah_mcp_adapter_resource_name', $name, $this->ability ); -
/** * Filters the resource contents after execution. */ apply_filters( 'awfah_mcp_adapter_resource_read_result', $contents, $request_params, $uri, $mcp_resource, $this->mcp ); -
/** * Filters the MCP resource URI derived from an ability. */ apply_filters( 'awfah_mcp_adapter_resource_uri', $uri, $this->ability ); -
/** * Filters the list of resources before returning to the client. */ apply_filters( 'awfah_mcp_adapter_resources_list', $resources, $this->mcp, $schema ); -
/** * Filters the minimum interval between session last_activity writes. */ apply_filters( 'awfah_mcp_adapter_session_activity_update_interval', self::DEFAULT_ACTIVITY_UPDATE_INTERVAL ); -
/** * Filters the session inactivity timeout in seconds. */ apply_filters( 'awfah_mcp_adapter_session_inactivity_timeout', self::DEFAULT_INACTIVITY_TIMEOUT ); -
/** * Filters the maximum number of MCP sessions allowed per user on the current * site. */ apply_filters( 'awfah_mcp_adapter_session_max_per_user', self::DEFAULT_MAX_SESSIONS ); -
/** * Filters the tool execution result before response assembly. */ apply_filters( 'awfah_mcp_adapter_tool_call_result', $result, $args, $tool_name, $mcp_tool, $this->mcp ); -
/** * Filters the MCP tool name derived from an ability. */ apply_filters( 'awfah_mcp_adapter_tool_name', $sanitized_name, $this->ability ); -
/** * Filters the list of tools before returning to the client. */ apply_filters( 'awfah_mcp_adapter_tools_list', $tools, $this->mcp, $schema ); -
/** * Filters the MCP tool names the current request may list and call. */ apply_filters( 'awfah_mcp_allowed_tool_names', $allowed ); -
/** * Error codes a tool returns as an expected outcome, with their log level. */ apply_filters( 'awfah_mcp_expected_error_codes', self::EXPECTED ); -
/** * Filter the ability IDs this MCP server offers. */ apply_filters( 'awfah_mcp_server_ability_ids', $offered, $offered ); -
/** * Fires inside the scoped adapter's init action, after this plugin's own MCP * server is built. */ do_action( 'awfah_mcp_servers_init', $adapter ); -
/** * Allow Pro or third-party plugins to add ability classes to module mappings. */ apply_filters( 'awfah_module_class_map', $map ); -
/** * Whether to build the MCP servers on this request. */ apply_filters( 'awfah_needs_mcp_servers', '' === $route || self::is_mcp_rest_request() ); -
/** * Filter the scope required to use a given MCP tool/ability. */ apply_filters( 'awfah_oauth_ability_required_scope', $scope, $key ); -
/** * Filter access/refresh token lifetimes in seconds (Pro: admin-configurable * TTLs). */ apply_filters( 'awfah_oauth_access_ttl', self::ACCESS_TTL, $client_id, $user_id, $scope, $context ); -
/** * Allow Pro / third parties to disable open dynamic client registration * (allowlist-only, IP restrictions, …). Return false to reject with 403. */ apply_filters( 'awfah_oauth_allow_registration', true, $request ); -
/** * Allow Pro / third parties to reject a token request (IP allowlist, …). * Return false to reject. */ apply_filters( 'awfah_oauth_allow_token_request', true, $request ); -
/** * Allow Pro / third parties to deny an authorization (pending-client approval, * per-role policy, IP rules, …). Return false to deny with access_denied. */ apply_filters( 'awfah_oauth_authorize_allowed', true, get_current_user_id(), $client, $eff_scope ); -
/** * The authorization policy of a resource registered through * `awfah_oauth_resources`. */ apply_filters( 'awfah_oauth_authorize_policy', null, $resource_id ); -
/** * Filter the language-neutral base URL for every OAuth endpoint. */ apply_filters( 'awfah_oauth_base_url', untrailingslashit( $home ) ); -
/** * Fires just before an authorization code is issued (audit/observe). */ do_action( 'awfah_oauth_before_issue_code', $user_id, $client, $scope, $context ); -
/** * Fires after a client is dynamically registered (audit/notify). */ do_action( 'awfah_oauth_client_registered', $client_id, $client_args ); -
/** * Filter the stored client args before registration (Pro may set an approval * status, restrict scope, tag the client, …). Do not change client_id here. */ apply_filters( 'awfah_oauth_client_registration_args', array( 'client_id' => $client_id, 'client_secret_hash' => $secret_hash, 'client_name' => sanitize_text_field( (string) ( $body['client_name'] ?? 'MCP Client' ) ), 'redirect_uris' => $redirect_uris, 'grant_types' => 'authorization_code refresh_token', 'scope' => $scope, 'token_endpoint_auth_method' => $auth_method, 'created_by_ip' => OAuth_Server::client_ip(), ), $request ); -
/** * Filter the effective scope granted for this authorization. Pro may narrow it * by role/policy; must return a space-delimited subset of supported scopes. */ apply_filters( 'awfah_oauth_effective_scope', $scope, get_current_user_id(), $client_scope ); -
/** * Filter whether the OAuth 2.1 server is enabled. */ apply_filters( 'awfah_oauth_enabled', $enabled ); -
/** * Filter how many app registrations one address may make per hour. */ apply_filters( 'awfah_oauth_register_rate_limit', 20, $request ); -
/** * Register additional protected resources. */ apply_filters( 'awfah_oauth_resources', array() ); -
/** * Days an unused client registration is kept before it is removed. */ apply_filters( 'awfah_oauth_stale_client_days', 7 ); -
/** * Fires after an access+refresh token pair is issued (audit/notify). */ do_action( 'awfah_oauth_token_issued', $user_id, $client_id, $scope, $context ); -
/** * Fires when an OAuth access token successfully authenticates a request * (audit/notify; Pro may also enforce per-scope tool access elsewhere). */ do_action( 'awfah_oauth_token_validated', $this->resolved, (string) $row['scope'], (string) $row['client_id'] ); -
/** * Whether AtlasMCP's tools are offered on the official MCP Adapter plugin's * servers. */ apply_filters( 'awfah_official_adapter_tools', $on ); -
/** * Option-name prefixes per plugin, for the Plugin settings screen and tools. */ apply_filters( 'awfah_option_owners', $map ); -
/** * IDs of the MCP servers this plugin family runs on the scoped adapter. */ apply_filters( 'awfah_own_mcp_server_ids', [ sanitize_key( (string) ( self::get_mcp_settings()['server_id'] ?? '' ) ) ] ); -
/** * Whether this plugin owns the .well-known discovery documents. */ apply_filters( 'awfah_owns_well_known', true, $kind ); -
/** * The biggest file the upload panel accepts, in bytes. */ apply_filters( 'awfah_panel_max_upload_bytes', min( $max, self::MAX_BYTES ) ); -
/** * Parameter descriptions for AtlasMCP's tools. */ apply_filters( 'awfah_param_docs', $table ); -
/** * Stages of the AtlasMCP execution pipeline, run in order. */ apply_filters( 'awfah_pipeline_stages', [] ); -
/** * Safe plugin actions AI apps may run. See the class doc for the keys. */ apply_filters( 'awfah_plugin_actions', self::builtin() ); -
/** * What the editor's Ask AI panel offers for one item. */ apply_filters( 'awfah_post_prompts', $list, $post ); -
/** * The longest the status tool may hold a request, in seconds. A waiting call * keeps one PHP process busy, so a small host may want less. 0 turns waiting * off. */ apply_filters( 'awfah_preview_max_wait', self::MAX_WAIT ); -
/** * Prompt packs: what people can ask their AI app about a plugin. See the class * doc for the keys. */ apply_filters( 'awfah_prompt_packs', $packs ); -
/** * Filters the prompt templates listed for one editor experiment. */ apply_filters( 'awfah_prompt_templates', static::prebuilt_templates( $tool_slug ), $tool_slug ); -
/** * Meta keys no AI app may change. */ apply_filters( 'awfah_protected_meta', $list ); -
/** * Address of the outside reachability test. Return an empty string to skip it. */ apply_filters( 'awfah_reachability_endpoint', self::REACHABILITY_URL ); -
/** * Tool calls one AI app may make in a minute. 0 = no limit. */ apply_filters( 'awfah_requests_per_minute', is_array( $stored ) ? (int) ( $stored[ self::REQUESTS_KEY ] ?? 0 ) : 0 ); -
/** * Admin screens that list abilities, and so need the derived ones present. */ apply_filters( 'awfah_rest_priming_pages', [ 'ai-abilities-explorer' ] ); -
/** * Resource groups that may be turned into abilities. */ apply_filters( 'awfah_rest_supported_groups', [] ); -
/** * Namespaces that may be turned into abilities. */ apply_filters( 'awfah_rest_supported_namespaces', [] ); -
/** * Whether write endpoints may be turned into abilities. */ apply_filters( 'awfah_rest_writes_supported', true ); -
/** * Classes whose presence means another MCP OAuth server is installed. */ apply_filters( 'awfah_rival_oauth_classes', $known_libraries ); -
/** * Query vars whose registration means another MCP OAuth server is active. */ apply_filters( 'awfah_rival_oauth_query_vars', array( 'mcp_oauth_discovery' ) ); -
/** * Hosts rollback packages may come from. The free plugin downloads only from * WordPress.org; an add-on adds its own host for its own source. */ apply_filters( 'awfah_rollback_hosts', [ 'downloads.wordpress.org' ] ); -
/** * Register additional plugins that roll back with this one. */ apply_filters( 'awfah_rollback_sources', [] ); -
/** * A run ended. */ do_action( 'awfah_run_finished', $run->id, $status, $run ); -
/** * Planners by run kind. A planner decides each next step; the runner executes * it. Register a new kind (e.g. "agent") here. */ apply_filters( 'awfah_run_planners', [] ); -
/** * The public shape of a run (planners add what their screen needs). */ apply_filters( 'awfah_run_present', $out, $log, $row ); -
/** * Days AtlasMCP keeps a kind of run in its history (Pro raises it). */ apply_filters( 'awfah_run_retention_days', 7, $kind ); -
/** * Build the state a retried run starts with. A planner whose plan can change * between runs (a workflow edited since) refreshes it here. */ apply_filters( 'awfah_run_retry_state', array_diff_key( $log, array_flip( [ 'steps', 'outputs', 'spent', 'error', 'undone', 'cursor' ] ) ), $row ); -
/** * Step types a run can take. See the class doc for the keys. */ apply_filters( 'awfah_run_step_types', $types ); -
/** * Whether AtlasMCP safe mode is on (every write tool refused). */ apply_filters( 'awfah_safe_mode', $on ); -
/** * User fields people without edit_users may change on their own account. */ apply_filters( 'awfah_self_user_meta_keys', $allowed ); -
/** * SEO plugins AtlasMCP can read and write. */ apply_filters( 'awfah_seo_plugins', $map ); -
/** * Steps of the first-run setup wizard. */ apply_filters( 'awfah_setup_steps', $steps ); -
/** * Filters whether an ability's execution should be logged. */ apply_filters( 'awfah_should_log_ability', true, $ability_name ); -
/** * After expired journal entries, checkpoints and runs were removed. Checkpoint * stores hook here to delete the files behind removed rows. */ do_action( 'awfah_storage_pruned', $removed ); -
/** * Whether AtlasMCP shows its tips in wp-admin to this person. */ apply_filters( 'awfah_tips_on', ! get_user_meta( $user, self::TIPS_OFF, true ), $user ); -
/** * Filter the preview of what a role's AI connection receives. */ apply_filters( 'awfah_tool_access_preview_ids', $ids, $role ); -
/** * Override whether a tool is allowed under the "Content only" preset. */ apply_filters( 'awfah_tool_is_content', null, $key ); -
/** * Override whether a tool counts as destructive (asks before running). */ apply_filters( 'awfah_tool_is_destructive', null, $key ); -
/** * Override the write/read decision for one tool. */ apply_filters( 'awfah_tool_is_write', null, $key ); -
/** * Undo handlers, one per object type. Add one for a custom object: extend * AtlasAiDev\Awfah\Undo\Handler. The generic REST handler is always added * last. */ apply_filters( 'awfah_undo_handlers', $builtin ); -
/** * Post meta keys the post undo handler leaves alone (another handler owns * them). */ apply_filters( 'awfah_undo_post_skip_meta', $skip ); -
/** * Post types the post undo handler ignores. */ apply_filters( 'awfah_undo_skip_post_types', $skip ); -
/** * Force a cipher (tests). 1 = AES-256-GCM, 2 = XChaCha20-Poly1305, 0 = none. */ apply_filters( 'awfah_vault_cipher', null ); -
/** * Whether changes get a visual preview link. */ apply_filters( 'awfah_visual_preview', true ); -
/** * A page is about to be drawn for a preview. Add-ons may show their own drafts * in it. */ do_action( 'awfah_visual_preview_frame', $item, $proposed ); -
/** * The page an add-on's tool call would change, for the visual preview. */ apply_filters( 'awfah_visual_preview_item', $item, $ability, $input ); -
/** * More for the person to know about this preview. */ apply_filters( 'awfah_visual_preview_notes', (array) ( $item['notes'] ?? [] ), $row ); -
/** * How long a preview link keeps working after the last version or instruction, * in seconds. */ apply_filters( 'awfah_visual_preview_ttl', self::TTL ); -
/** * This action is documented in wp-admin/includes/class-wp-upgrader.php */ do_action( 'upgrader_process_complete', $this, [ 'action' => 'update', 'type' => 'plugin', 'plugins' => [ $plugin ], ] ); -
/** * Fires after the main plugin class has been initialized. */ do_action( 'wp_mcp_init', self::$instance ); -
apply_filters( 'awfah_enable_external_abilities', true ); -
apply_filters( 'awfah_backups_list', [] ); -
do_action( 'awfah_jwt_token_validated', (int) $user->ID, (string) $decoded->jti ); -
apply_filters( 'https_local_ssl_verify', false ); -
do_action( 'litespeed_control_set_nocache', 'AtlasMCP endpoint' ); -
apply_filters( "{$this->client->getSlug()}_extra_uninstall_reasons", [], $reasons ); -
apply_filters( "{$this->client->getSlug()}_tracker_data", $data ); -
apply_filters( "{$this->client->getSlug()}_tracking_default_notice_message", esc_html__( 'Want to help make %1$s even more awesome? Allow %1$s to collect non-sensitive diagnostic data and usage information.', 'ai-workflow-automation-ai-agent-hub' ) ); -
apply_filters( "{$this->client->getSlug()}_what_tracked", $data ); -
apply_filters( 'AtlasAiDev_is_local', isset( $_SERVER['REMOTE_ADDR'] ) ? in_array( $_SERVER['REMOTE_ADDR'], [ '127.0.0.1', '::1' ] ) : true ); -
apply_filters( 'awfah_backup_delete', [ 'success' => false ], $id ); -
apply_filters( 'awfah_backup_delete_all', [ 'success' => false ] ); -
apply_filters( 'awfah_backup_restore', new WP_Error( 'not_available', 'Backup restore not available.' ), $id ); -
apply_filters( 'awfah_jwt_failed_login_window', 15 * MINUTE_IN_SECONDS ); -
apply_filters( 'awfah_jwt_max_failed_logins', 5 ); -
apply_filters( 'awfah_mcp_prompt_ids', Prompt_Registry::get_prompt_identifiers() ); -
apply_filters( 'awfah_mcp_resource_ids', Resource_Registry::get_resource_ability_ids() ); -
apply_filters( 'awfah_oauth_ability_scope_map', [] ); -
apply_filters( 'awfah_oauth_authorize_min_capability', 'edit_posts' ); -
apply_filters( 'awfah_oauth_issuer', untrailingslashit( self::rest_path_url( self::REST_NAMESPACE ) ) ); -
apply_filters( 'awfah_oauth_refresh_ttl', self::REFRESH_TTL, $client_id, $user_id, $scope, $context ); -
apply_filters( 'awfah_oauth_scopes', array( 'mcp:read', 'mcp:write', 'mcp:woocommerce', 'mcp:content' ) ); -
apply_filters( 'awfah_prompt_builder_classes', [], $settings ); -
apply_filters( 'awfah_prompt_builders_use_scoped_adapter', false ); -
apply_filters( 'awfah_rest_owner_map', self::OWNERS ); -
apply_filters( 'awfah_rest_tool_blocked_routes', array_unique( [ '/awfah/', '/awfah_mcp/', '/' . $namespace . '/', '/awfah_oauth/', '/jwt-auth/', '/wp-abilities/', '/batch/', '/wp/v2/plugins/' ] ) ); -
apply_filters( 'awfah_run_slice_seconds', self::SLICE_SECONDS ); -
apply_filters( 'awfah_shopping_assistant_available', false ); -
apply_filters( 'awfah_shopping_assistant_connect_url', '' ); -
apply_filters( 'awfah_uncached_rest_namespaces', $list ); -
apply_filters( 'awfah_version_label', AWFAH_VERSION ); -
apply_filters( 'awfah_workflows_available', false ); -
do_action( 'breeze_clear_all_cache' ); -
do_action( 'cache_enabler_clear_complete_cache' ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'rt_nginx_helper_purge_all' ); -
do_action( 'woo_feed_update' ); -
do_action( 'wpfc_clear_all_cache' ); -
do_action( 'wphb_clear_page_cache' );
Generated from MCP Server for WordPress's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: