WordPress.org

Make WordPress Core

Ticket #27110: 27110.diff

File 27110.diff, 536 bytes (added by rmccue, 7 years ago)

Add filter to WP_Plugins_List_Table

  • wp-admin/includes/class-wp-plugins-list-table.php

    diff --git wp-admin/includes/class-wp-plugins-list-table.php wp-admin/includes/class-wp-plugins-list-table.php
    index 9e64849..f38c446 100644
    class WP_Plugins_List_Table extends WP_List_Table { 
    7070                        }
    7171                }
    7272
     73                $plugins = apply_filters( 'wp_plugins_list_table_items', $plugins );
     74
    7375                set_transient( 'plugin_slugs', array_keys( $plugins['all'] ), DAY_IN_SECONDS );
    7476
    7577                if ( ! $screen->in_admin( 'network' ) ) {