WP_Media_List_Table::handle_row_actions( WP_Post $post, string $column_name, string $primary )

Generates and displays row action links.

Parameters Parameters


(WP_Post) (Required) Attachment being acted upon.


(string) (Required) Current column name.


(string) (Required) Primary column name.

Top ↑

Return Return

(string) Row actions output for media attachments, or an empty string if the current column is not the primary column.

Top ↑

Source Source

File: wp-admin/includes/class-wp-media-list-table.php

	protected function handle_row_actions( $post, $column_name, $primary ) {
		if ( $primary !== $column_name ) {
			return '';

		$att_title = _draft_or_post_title();

		return $this->row_actions( $this->_get_row_actions( $post, $att_title ) );

Top ↑

Changelog Changelog

Version Description
4.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.