WP_Media_List_Table::extra_tablenav( string $which )


Parameters Parameters

$which

(string) (Required)


Top ↑

Source Source

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

	protected function extra_tablenav( $which ) {
		if ( 'bar' !== $which ) {
			return;
		}
		?>
		<div class="actions">
		<?php
		if ( ! $this->is_trash ) {
			$this->months_dropdown( 'attachment' );
		}

		/** This action is documented in wp-admin/includes/class-wp-posts-list-table.php */
		do_action( 'restrict_manage_posts', $this->screen->post_type, $which );

		submit_button( __( 'Filter' ), '', 'filter_action', false, array( 'id' => 'post-query-submit' ) );

		if ( $this->is_trash && current_user_can( 'edit_others_posts' ) && $this->has_items() ) {
			submit_button( __( 'Empty Trash' ), 'apply', 'delete_all', false );
		}
		?>
		</div>
		<?php
	}


Top ↑

User Contributed Notes User Contributed Notes

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