wphooks.info - media_row_actions

media_row_actions

(trunk - 5.0-alpha-43304)

The hook occurs in the following file:

wp-admin/includes/class-wp-media-list-table.php:
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
		 * Filters the action links for each attachment in the Media list table.
		 *
		 * @since 2.8.0
		 *
		 * @param string[] $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.