manage_posts_columns

过滤钩子
apply_filters( 'manage_posts_columns', $posts_columns, $post_type )
参数
  • (string[]) $post_columns An associative array of column headings.
    Required:
  • (string) $post_type The post type slug.
    Required:
定义位置
相关勾子
manage_pages_columnsmanage_posts_custom_columnmanage_post_type_posts_columnsmanage_media_columnsmanage_pages_custom_column
相关方法
update_posts_countget_post_classmaybe_drop_columnget_post_customnext_posts_linkget_post_custom_values
引入
1.5.0
弃用
-

manage_posts_columns 是WordPress的一个过滤钩子,用于在WordPress管理中的”Post”屏幕的列表视图中添加自定义列。这个钩子允许开发者在”文章”屏幕上添加对网站管理员有用的额外信息。例如,一个文章的最后更新日期,最后更新该文章的作者,或其他相关信息。

过滤文章列表表中显示的列。

$posts_columns = apply_filters( 'manage_posts_columns', $posts_columns, $post_type );

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 19:32:59

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: