filtrod 3.7.0
bulk_post_updated_messages
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
| Parametr | Typ | Opis |
|---|---|---|
$bulk_messages | array[] | Arrays of messages, each keyed by the corresponding post type. Messages are keyed with 'updated', 'locked', 'deleted', 'trashed', and 'untrashed'. |
$bulk_counts | int[] | 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
}
// 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