wp-admin/includes/class-wp-plugins-list-table.php:17Core class used to implement displaying installed plugins in a list table.
Every hook that fires from inside WP_Plugins_List_Table, in the order it appears in the class, grouped by the method that fires it.
$show_autoupdatesboolprotectedclass WP_Plugins_List_Table extends WP_List_Table { /** * Whether to show the auto-updates UI. * * @since 5.5.0 * * @var bool True if auto-updates UI is to be shown, false otherwise. */ protected $show_autoupdates = true; /** * Constructor. * * @since 3.2.0 * * @see WP_List_Table::__construct() for more information on default arguments. * * @global string $status * @global int $page * * @param array $args An associative array of arguments. */ public function __construct( $args = array() ) { global $status, $page; parent::__construct( array( 'plural' => 'plugins', 'screen' => $args['screen'] ?? null, ) ); $status = 'all'; if ( isset( $_REQUEST['plugin_status'] ) ) { $status = sanitize_key( $_REQUEST['plugin_status'] ); } if ( isset( $_REQUEST['s'] ) ) { $_SERVER['REQUEST_URI'] = add_query_arg( 's', wp_unslash( $_REQUEST['s'] ) ); } $page = $this->get_pagenum(); $this->show_autoupdates = wp_is_auto_update_enabled_for_type( 'plugin' ) && current_user_can( 'update_plugins' ) && ( ! is_multisite() || $this->screen->in_admin( 'network' ) ); } /** * Gets the CSS classes for the list table element. * * @since 3.1.0 * * @return string[] Array of CSS classes for the table tag. */ protected function get_table_classes() { return array( 'widefat', $this->_args['plural'] ); } /** * Checks whether the current user can activate plugins for this screen. * * @since 3.1.0 * * @return bool Whether the current user can activate plugins. */ public function ajax_user_can() { return current_user_can( 'activate_plugins' ); } /** * Prepares the list of items for displaying. * * @since 3.1.0 * * @global string $status Current plugin status filter slug. * @global array<string, array<string, array<string, mixed>>> $plugins Array of plugin data arrays grouped by status. * @global array<string, int> $totals Count of plugins for each status group. * @global int $page Current page number. * @global string $orderby Column name to sort by.Introduced in 3.1.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/class-wp-plugins-list-table.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.