WP_Plugin_Install_List_Table::get_installed_plugin_slugs() WordPress Method

The WP_Plugin_Install_List_Table::get_installed_plugin_slugs() method returns an array of the slugs for all the plugins installed on the site.

WP_Plugin_Install_List_Table::get_installed_plugin_slugs() #

Return 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().


Top ↑

Return

(array)


Top ↑

Source

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

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


Top ↑

Changelog

Changelog
VersionDescription
4.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.