WordPress at Your Fingertips
function is not described

WP_Plugin_Install_List_Table::no_items() public WP 1.0

{} It's a method of the class: WP_Plugin_Install_List_Table{}

No Hooks.

Return

null. Nothing.

Usage

$WP_Plugin_Install_List_Table = new WP_Plugin_Install_List_Table();
$WP_Plugin_Install_List_Table->no_items();

Code of WP_Plugin_Install_List_Table::no_items() WP 5.8.2

<?php
public function no_items() {
	if ( isset( $this->error ) ) { ?>
		<div class="inline error"><p><?php echo $this->error->get_error_message(); ?></p>
			<p class="hide-if-no-js"><button class="button try-again"><?php _e( 'Try Again' ); ?></button></p>
		</div>
	<?php } else { ?>
		<div class="no-plugin-results"><?php _e( 'No plugins found. Try a different search.' ); ?></div>
		<?php
	}
}