filtrod 5.2.0
wp_php_error_args
Opis — z kodu źródłowego
Filters the arguments passed to {@see wp_die()} for the default PHP error template.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | Associative array of arguments passed to <code>wp_die()</code>. By default these contain a 'response' key, and optionally 'link_url' and 'link_text' keys. |
$error | array | Error information retrieved from <code>error_get_last()</code>. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_php_error_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_php_error_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii