filtrod 6.4.0
wp_admin_notice_args
Opis — z kodu źródłowego
Filters the arguments for an admin notice.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | The arguments for the admin notice. |
$message | string | The message for the admin notice. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_admin_notice_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_admin_notice_args', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii