filtrod 6.4.0
wp_admin_notice_markup
Opis — z kodu źródłowego
Filters the markup for an admin notice.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$markup | string | The HTML markup for the admin notice. |
$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_filter( 'wp_admin_notice_markup', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_admin_notice_markup', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii