wphooks.info - manage_media_custom_column

manage_media_custom_column

(trunk - 5.0-alpha-42490)

The hook occurs in the following file:

wp-admin/includes/class-wp-media-list-table.php:
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
		/**
		 * Fires for each custom column in the Media list table.
		 *
		 * Custom columns are registered using the {@see 'manage_media_columns'} filter.
		 *
		 * @since 2.5.0
		 *
		 * @param string $column_name Name of the custom column.
		 * @param int    $post_id     Attachment ID.
		 */
		do_action( 'manage_media_custom_column', $column_name, $post->ID );
	}

	/**
	 * @global WP_Post $post
	 */
	public function display_rows() {
		global $post, $wp_query;

		$post_ids = wp_list_pluck( $wp_query->posts, 'ID' );