WordPress at Your Fingertips
function is not described

WP_Plugin_Install_List_Table::get_installed_plugins() protected WP 4.9.0

Return the list of known plugins.

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

{} It's a method of the class: WP_Plugin_Install_List_Table{}

No Hooks.

Return

Array.

Usage

// protected - for code of main (parent) or child class
$result = $this->get_installed_plugins();

Changelog

Since 4.9.0 Introduced.

Code of WP_Plugin_Install_List_Table::get_installed_plugins() WP 5.8.2

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;
}