WP_Plugin_Install_List_Table::display() WordPress Method

The WP_Plugin_Install_List_Table::display() method is used to display the plugins listing table. It takes two parameters: an array of plugins and an array of columns. The columns are: -Plugin -Version -Author -Description

WP_Plugin_Install_List_Table::display() #

Displays the plugin install table.


Description

Overrides the parent display() method to provide a different container.


Top ↑

Source

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

	public function display() {
		$singular = $this->_args['singular'];

		$data_attr = '';

		if ( $singular ) {
			$data_attr = " data-wp-lists='list:$singular'";
		}

		$this->display_tablenav( 'top' );

		?>
<div class="wp-list-table <?php echo implode( ' ', $this->get_table_classes() ); ?>">
		<?php
		$this->screen->render_screen_reader_content( 'heading_list' );
		?>
	<div id="the-list"<?php echo $data_attr; ?>>
		<?php $this->display_rows_or_placeholder(); ?>
	</div>
</div>
		<?php
		$this->display_tablenav( 'bottom' );
	}


Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.