akcjaod 6.9.0
wp_after_execute_ability
Opis — z kodu źródłowego
Fires immediately after an ability finished executing.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$ability_name | string | The name of the ability. |
$input | mixed | The input data for the ability. |
$result | mixed | The result of the ability execution. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_after_execute_ability', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_after_execute_ability', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii