Filter hook 'plugins_list'

in WP Core File wp-admin/includes/class-wp-plugins-list-table.php at line 309

View Source

plugins_list

Filter Hook
Description
Filters the array of plugins for the list table.

Hook Information

File Location wp-admin/includes/class-wp-plugins-list-table.php View on GitHub
Hook Type Filter
Line Number 309

Hook Parameters

Type Name Description
array[] $plugins An array of arrays of plugin data, keyed by context.

Usage Examples

Basic Usage
<?php
// Hook into plugins_list
add_filter('plugins_list', 'my_custom_filter', 10, 1);

function my_custom_filter($plugins) {
    // Your custom filtering logic here
    return $plugins;
}

Source Code Context

wp-admin/includes/class-wp-plugins-list-table.php:309 - How this hook is used in WordPress core
<?php
 304  		 *
 305  		 * @since 6.3.0
 306  		 *
 307  		 * @param array[] $plugins An array of arrays of plugin data, keyed by context.
 308  		 */
 309  		$plugins = apply_filters( 'plugins_list', $plugins );
 310  
 311  		$totals = array();
 312  		foreach ( $plugins as $type => $list ) {
 313  			$totals[ $type ] = count( $list );
 314  		}

PHP Documentation

<?php
/**
		 * Filters the array of plugins for the list table.
		 *
		 * @since 6.3.0
		 *
		 * @param array[] $plugins An array of arrays of plugin data, keyed by context.
		 */
Quick Info
  • Hook Type: Filter
  • Parameters: 1
  • File: wp-admin/includes/class-wp-plugins-list-table.php
Related Hooks

Related hooks will be displayed here in future updates.