Title: WP_Plugin_Install_List_Table::get_installed_plugins
Published: November 20, 2017
Last modified: May 20, 2026

---

# WP_Plugin_Install_List_Table::get_installed_plugins(): array

## In this article

 * [Description](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#description)
 * [Return](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#wp--skip-link--target)

Returns the list of known plugins.

## 󠀁[Description](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#description)󠁿

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

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#return)󠁿

 array

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#source)󠁿

    ```php
    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 all references](https://developer.wordpress.org/reference/files/wp-admin/includes/class-wp-plugin-install-list-table.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-admin/includes/class-wp-plugin-install-list-table.php#L42)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-admin/includes/class-wp-plugin-install-list-table.php#L42-L65)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#related)󠁿

| Uses | Description | 
| [get_site_transient()](https://developer.wordpress.org/reference/functions/get_site_transient/)`wp-includes/option.php` |

Retrieves the value of a site transient.

  |

| Used by | Description | 
| [WP_Plugin_Install_List_Table::get_installed_plugin_slugs()](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugin_slugs/)`wp-admin/includes/class-wp-plugin-install-list-table.php` |

Returns a list of slugs of installed plugins, if known.

  | 
| [WP_Plugin_Install_List_Table::prepare_items()](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/prepare_items/)`wp-admin/includes/class-wp-plugin-install-list-table.php` |  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins/?output_format=md#changelog)󠁿

| Version | Description | 
| [4.9.0](https://developer.wordpress.org/reference/since/4.9.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_plugin_install_list_table%2Fget_installed_plugins%2F)
before being able to contribute a note or feedback.