Enable Abilities for MCP 2.17.1 has 13 actions and 16 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 Enable Abilities for MCP fires an action
add_action( 'wpml_set_element_language_details', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value Enable Abilities for MCP is about to use
add_filter( 'ewpa_ability_capability', function( $capability, $ability ) {
// Change $capability here.
return $capability;
}, 10, 2 );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.
Changes by version
2.17.0 → 2.17.1 · Nov 18, 2026 · 0 added, 0 removed
No hooks were added or removed in this release.
All hooks
-
/** * Filters the capability an ability requires. */ apply_filters( 'ewpa_ability_capability', $capability, $ability ); -
/** * Filters the REST route prefixes the Bearer token authenticates on. */ apply_filters( 'ewpa_bearer_route_prefixes', array( $default ) ); -
/** * Filters the non-public post types the CPT abilities may manage. */ apply_filters( 'ewpa_manageable_private_post_types', $default ); -
/** * Filters the minimum number of logged ability executions before the review * notice appears. */ apply_filters( 'ewpa_review_notice_threshold', 25 ); -
/** * Filters the meta keys skipped when duplicating a post into another language. */ apply_filters( 'ewpa_translation_skipped_meta_keys', $skip, $source_id, $translated_id ); -
/** * Filters the term meta keys skipped when duplicating a term into another * language. */ apply_filters( 'ewpa_translation_skipped_term_meta_keys', $skip, $source_id, $translated_id ); -
/** * Filters how many pending upload links one user may hold at once. */ apply_filters( 'ewpa_upload_link_max_active', 5 ); -
/** * Filters the largest file an upload link accepts, in bytes. */ apply_filters( 'ewpa_upload_link_max_bytes', min( (int) wp_max_upload_size(), 20 * MB_IN_BYTES ) ); -
/** * Filters how long an upload link stays valid, in seconds. */ apply_filters( 'ewpa_upload_link_ttl', 10 * MINUTE_IN_SECONDS ); -
apply_filters( 'wpml_element_trid', null, $original_id, 'post_' . get_post_type( $original_id ) ); -
do_action( 'wpml_set_element_language_details', array( 'element_id' => $post_id, 'element_type' => 'post_' . get_post_type( $post_id ), 'trid' => false, 'language_code' => $lang, 'source_language_code' => null, ) ); -
do_action( 'ewpa_after_update_post_meta', $post_id, $meta_key, $safe_data ); -
apply_filters( 'wpml_element_language_code', null, array( 'element_id' => $post_id, 'element_type' => 'post_' . get_post_type( $post_id ), ) ); -
apply_filters( 'wpml_get_element_translations', null, $trid, 'post_' . get_post_type( $post_id ) ); -
do_action( 'elementor/dynamic_tags/register', $tags_manager ); -
do_action( 'ewpa_after_activate_code_snippet', $snippet_id, $user_id ); -
do_action( 'ewpa_after_create_code_snippet', (int) $saved->id, $title, $code ); -
do_action( 'ewpa_after_deactivate_code_snippet', $snippet_id, get_current_user_id() ); -
do_action( 'ewpa_after_update_code_snippet', (int) $saved->id, $updated ); -
apply_filters( 'ewpa_blocked_meta_keys', array( '_edit_lock', '_edit_last', '_wp_old_slug', '_wp_old_date', '_pingme', '_encloseme', '_wp_trash_meta_status', '_wp_trash_meta_time', ) ); -
do_action( 'ewpa_code_snippet_activation_rejected', $snippet_id, $user_id ); -
do_action( 'ewpa_code_snippet_activation_requested', $snippet_id, get_current_user_id() ); -
apply_filters( 'ewpa_seo_meta_keys', $keys ); -
do_action( 'litespeed_purge_all' ); -
do_action( 'litespeed_purge_post', $post_id ); -
do_action( 'wpfc_clear_all_cache' ); -
do_action( 'wpfc_clear_post_cache_by_id', $post_id ); -
apply_filters( 'wpml_active_languages', null, array( 'skip_missing' => 0 ) ); -
apply_filters( 'wpml_object_id', $term_id, $term->taxonomy, true, $target );
Generated from Enable Abilities for MCP'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: