akcjaod 6.4.0
wp_admin_notice
Opis — z kodu źródłowego
Fires before an admin notice is output.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$message | string | The message for the admin notice. |
$args | array | The arguments for the admin notice. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_admin_notice', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_admin_notice', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii