manage_taxonomies_for_attachment_columns хук-фильтр . WP 3.5.0
Filters the taxonomy columns for attachments in the Media list table.
Использование
add_filter( 'manage_taxonomies_for_attachment_columns', 'filter_function_name_1732', 10, 2 ); function filter_function_name_1732( $taxonomies, $post_type ){ // filter... return $taxonomies; }
- $taxonomies(строка[])
- An array of registered taxonomy names to show for attachments.
- $post_type(строка)
- The post type.
По умолчанию: 'attachment'
Список изменений
С версии 3.5.0 | Введена. |
Где вызывается хук
manage_taxonomies_for_attachment_columns
wp-admin/includes/class-wp-media-list-table.php 300
$taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' );