Uses
Uses | Description |
---|---|
wp-includes/option.php: get_site_transient() | Retrieves the value of a site transient. |
Return the list of known plugins.
Uses the transient data from the updates API to determine the known installed plugins.
(array)
File: wp-admin/includes/class-wp-plugin-install-list-table.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 ) { $plugin->upgrade = false; $plugins[ $plugin->slug ] = $plugin; } } if ( isset( $plugin_info->response ) ) { foreach ( $plugin_info->response as $plugin ) { $plugin->upgrade = true; $plugins[ $plugin->slug ] = $plugin; } } return $plugins; }
Version | Description |
---|---|
4.9.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugins