filtrod 2.5.0
manage_media_columns
Opis — z kodu źródłowego
Filters the Media list table columns.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$posts_columns | string[] | An array of columns displayed in the Media list table. |
$detached | bool | Whether the list table contains media not attached to any posts. Default true. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'manage_media_columns', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'manage_media_columns', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii