WP HOOKS
filtrod 3.7.0

bulk_post_updated_messages

Args 2Plik wp-admin/edit.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the bulk action updated messages.

By default, custom post types use the messages for the 'post' post type.

Parametry

ParametrTypOpis
$bulk_messagesarray[]Arrays of messages, each keyed by the corresponding post type. Messages are keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'.
$bulk_countsint[]Array of item counts for each message, used to build internationalized strings.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'bulk_post_updated_messages', 'twoja_funkcja', 10, 2 );

function twoja_funkcja($param_1, $param_2) {
	// Twój kod
}

Popularne w tej kategorii