wphooks.info - media_row_actions

media_row_actions

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/class-wp-media-list-table.php:
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
		 * Filters the action links for each attachment in the Media list table.
		 *
		 * @since 2.8.0
		 *
		 * @param array   $actions  An array of action links for each attachment.
		 *                          Default 'Edit', 'Delete Permanently', 'View'.
		 * @param WP_Post $post     WP_Post object for the current attachment.
		 * @param bool    $detached Whether the list table contains media not attached
		 *                          to any posts. Default true.
		 */
		return apply_filters( 'media_row_actions', $actions, $post, $this->detached );
	}

	/**
	 * Generates and displays row action links.
	 *
	 * @since 4.3.0
	 *
	 * @param object $post        Attachment being acted upon.
	 * @param string $column_name Current column name.