Title: wp_after_execute_ability
Published: February 24, 2026

---

# do_action( ‘wp_after_execute_ability’, string $ability_name, mixed $input, mixed $result )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#wp--skip-link--target)

Fires immediately after an ability finished executing.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#parameters)󠁿

 `$ability_name`string

The name of the ability.

`$input`mixed

The input data for the ability.

`$result`mixed

The result of the ability execution.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#source)󠁿

    ```php
    do_action( 'wp_after_execute_ability', $this->name, $input, $result );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/abilities-api/class-wp-ability.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/abilities-api/class-wp-ability.php#L652)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/abilities-api/class-wp-ability.php#L652-L652)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Ability::execute()](https://developer.wordpress.org/reference/classes/wp_ability/execute/)`wp-includes/abilities-api/class-wp-ability.php` |

Executes the ability after input validation and running a permission check.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/wp_after_execute_ability/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.9.0](https://developer.wordpress.org/reference/since/6.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fwp_after_execute_ability%2F)
before being able to contribute a note or feedback.