Make WordPress Core


Ignore:
Timestamp:
06/27/2023 04:00:00 PM (15 months ago)
Author:
audrasjb
Message:

Plugins: Introduce the plugins_list filter.

This changeset adds the plugins_list hook, which can be use to filter the list of plugin displayed on WP Admin Plugins screen.

Props nateallen, fischfood, mukesh27, peterwilsoncc, SergeyBiryukov, audrasjb, costdev, ecorica, zunaid321.
Fixes #57278.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-plugins-list-table.php

    r55954 r56068  
    296296            $plugins['search'] = array_filter( $plugins['all'], array( $this, '_search_callback' ) );
    297297        }
     298
     299        /**
     300         * Filters the array of plugins for the list table.
     301         *
     302         * @since 6.3.0
     303         *
     304         * @param array[] $plugins An array of arrays of plugin data, keyed by context.
     305         */
     306        $plugins = apply_filters( 'plugins_list', $plugins );
    298307
    299308        $totals = array();
Note: See TracChangeset for help on using the changeset viewer.