wp_after_execute_ability
云策文档标注
概述
wp_after_execute_ability 是一个 WordPress 钩子,在能力执行完成后立即触发。它允许开发者在能力执行后执行自定义操作。
关键要点
- 钩子名称:wp_after_execute_ability
- 触发时机:能力执行完成后立即触发
- 参数:$ability_name(能力名称)、$input(输入数据)、$result(执行结果)
- 相关函数:WP_Ability::execute()
- 引入版本:WordPress 6.9.0
原文内容
Fires immediately after an ability finished executing.
Parameters
$ability_namestring-
The name of the ability.
$inputmixed-
The input data for the ability.
$resultmixed-
The result of the ability execution.
Source
do_action( 'wp_after_execute_ability', $this->name, $input, $result );
Changelog
| Version | Description |
|---|---|
| 6.9.0 | Introduced. |