akcjaod 6.9.0
wp_before_execute_ability
Opis — z kodu źródłowego
Fires before an ability gets executed, after input validation and permissions check.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$ability_name | string | The name of the ability. |
$input | mixed | The input data for the ability. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_before_execute_ability', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_before_execute_ability', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii