manage_taxonomies_for_attachment_columns

过滤钩子
apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' )
参数
  • (string[]) $taxonomies An array of registered taxonomy names to show for attachments.
    Required:
  • (string) $post_type The post type. Default 'attachment'.
    Required:
定义位置
相关勾子
manage_taxonomies_for_post_type_columnsmanage_themes_custom_columnmanage_pages_custom_columnmanage_sites_custom_columnmanage_pages_columns
相关方法
get_taxonomies_for_attachmentsget_attachment_iconget_attachment_icon_srcget_the_attachment_linkget_attachment_linkthe_attachment_links
引入
3.5.0
弃用
-

manage_taxonomies_for_attachment_columns: 这是WordPress中的一个过滤钩,允许插件或主题为附件在分类表中添加自定义列。这个钩子是在wp-admin/includes/class-wp-posts-list-table.php文件中触发的。

过滤媒体列表表中附件的分类列。

$taxonomies = apply_filters( 'manage_taxonomies_for_attachment_columns', $taxonomies, 'attachment' );

常见问题

FAQs
查看更多 >