WP_Plugins_List_Table::no_items

Advertisement

Syntax Syntax

WP_Plugins_List_Table::no_items()

Source Source

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

		$plugins_per_page = $this->get_items_per_page( str_replace( '-', '_', $screen->id . '_per_page' ), 999 );

		$start = ( $page - 1 ) * $plugins_per_page;

		if ( $total_this_page > $plugins_per_page ) {
			$this->items = array_slice( $this->items, $start, $plugins_per_page );
		}

		$this->set_pagination_args(
			array(
				'total_items' => $total_this_page,
				'per_page'    => $plugins_per_page,
			)
		);
	}

	/**
	 * @global string $s URL encoded search term.
	 *

Advertisement

Advertisement

Leave a Reply