filtrod 3.5.0
manage_taxonomies_for_attachment_columns
Opis — z kodu źródłowego
Filters the taxonomy columns for attachments in the Media list table.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$taxonomies | string[] | An array of registered taxonomy names to show for attachments. |
$post_type | string | The post type. Default 'attachment'. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'manage_taxonomies_for_attachment_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_taxonomies_for_attachment_columns', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii