W3cubDocs

/WordPress

WP_Plugin_Install_List_Table::get_installed_plugin_slugs(): array

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

Description

Uses the transient data from the updates API to determine the slugs of known installed plugins. This might be better elsewhere, perhaps even within get_plugins() .

Return

array

Source

protected function get_installed_plugin_slugs() {
	return array_keys( $this->get_installed_plugins() );
}

Changelog

Version Description
4.0.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_plugin_install_list_table/get_installed_plugin_slugs