WordPress at Your Fingertips
function is not described


Plugins_Handler::have_plugins_changed() public WC 1.0

Checks to see whether or not the plugin list given has changed when compared to the shared $jetpack_autoloader_cached_plugin_paths global. This allows us to deal with cases where the active list may change due to filtering..

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

No Hooks.


true|false. True if the plugins have changed, otherwise false.


$Plugins_Handler = new Plugins_Handler();
$Plugins_Handler->have_plugins_changed( $plugins );
$plugins(string[]) (required)
The plugins list to check against the global cache.

Code of Plugins_Handler::have_plugins_changed() WC 5.5.2

public function have_plugins_changed( $plugins ) {
	global $jetpack_autoloader_cached_plugin_paths;

	if ( $jetpack_autoloader_cached_plugin_paths !== $plugins ) {
		$jetpack_autoloader_cached_plugin_paths = $plugins;
		return true;

	return false;