manage_media_custom_column

动作钩子


do_action( 'manage_media_custom_column', $column_name, $post->ID )
参数
  • (string)
    $column_name
    Name of the custom column.
    Required:
  • (int)
    $post_id
    Attachment ID.
    Required:
定义位置
  • wp-admin/includes/class-wp-media-list-table.php
    , line 671
引入
2.5.0
弃用

Fires for each custom column in the Media list table.

Custom columns are registered using the {@see ‘manage_media_columns’} filter.

do_action( 'manage_media_custom_column', $column_name, $post->ID );