akcjaod 3.1.0
doing_it_wrong_run
Opis — z kodu źródłowego
Fires when the given function is being used incorrectly.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$function_name | string | The function that was called. |
$message | string | A message explaining what has been done incorrectly. |
$version | string | The version of WordPress where the message was added. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'doing_it_wrong_run', '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( 'doing_it_wrong_run', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii