WP_Plugin_Install_List_Table::views()

In this article

Overrides parent views so we can use the filter bar display.

Source

	public function views() {
		$views = $this->get_views();

		/** This filter is documented in wp-admin/includes/class-wp-list-table.php */
		$views = apply_filters( "views_{$this->screen->id}", $views );

		$this->screen->render_screen_reader_content( 'heading_views' );

		printf(
			/* translators: %s: https://wordpress.org/plugins/ */
			'<p>' . __( 'Plugins extend and expand the functionality of WordPress. You may install plugins from the <a href="%s">WordPress Plugin Directory</a> right on this page, or upload a plugin in .zip format by clicking the button above.' ) . '</p>',
			__( 'https://wordpress.org/plugins/' )
		);
		?>
<div class="wp-filter">
	<ul class="filter-links">
		<?php
		if ( ! empty( $views ) ) {
			foreach ( $views as $class => $view ) {
				$views[ $class ] = "\t<li class='$class'>$view";
			}
			echo implode( " </li>\n", $views ) . "</li>\n";
		}
		?>
	</ul>

		<?php install_search_form(); ?>
</div>
		<?php
	}

Hooks

apply_filters( “views_{$this->screen->id}”, string[] $views )

Filters the list of available list table views.

User Contributed Notes

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