Automattic\Jetpack\Autoloader\jp1c37d41437aca3a88a6b698473c4d5c4
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.
Return
true/false. True if the plugins have changed, otherwise false.
Usage
$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() Plugins Handler::have plugins changed WC 5.0.0
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;
}