filtrod 3.1.0
doing_it_wrong_trigger_error
Opis — z kodu źródłowego
Filters whether to trigger an error for _doing_it_wrong() calls.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$trigger | bool | Whether to trigger the error for _doing_it_wrong() calls. Default true. |
$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_filter( 'doing_it_wrong_trigger_error', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'doing_it_wrong_trigger_error', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii