WP_Plugin_Install_List_Table::get_installed_plugins() – Return the list of known plugins.

You appear to be a bot. Output may be restricted

Description

Returns the list of known plugins.

Uses the transient data from the updates API to determine the known installed plugins.

Usage

$array = WP_Plugin_Install_List_Table::get_installed_plugins();

Parameters

Returns

array

Source

File name: wordpress/wp-admin/includes/class-wp-plugin-install-list-table.php
Lines:

1 to 24 of 24
  protected function get_installed_plugins() {
    $plugins = array();

    $plugin_info = get_site_transient( 'update_plugins' );
    if ( isset( $plugin_info->no_update ) ) {
      foreach ( $plugin_info->no_update as $plugin ) {
        if ( isset( $plugin->slug ) ) {
          $plugin->upgrade          = false;
          $plugins[ $plugin->slug ] = $plugin;
        }
      }
    }

    if ( isset( $plugin_info->response ) ) {
      foreach ( $plugin_info->response as $plugin ) {
        if ( isset( $plugin->slug ) ) {
          $plugin->upgrade          = true;
          $plugins[ $plugin->slug ] = $plugin;
        }
      }
    }

    return $plugins;
  }
 

 View on GitHub View on Trac