WP HOOKS
akcjaod 6.4.0

wp_admin_notice

Args 2Plik wp-includes/functions.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Fires before an admin notice is output.

Parametry

ParametrTypOpis
$messagestringThe message for the admin notice.
$argsarrayThe 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
}

Popularne w tej kategorii