Automattic\Jetpack\Autoloader\jpe7838abe751421865f42aa61338ab306
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..
{} Это метод класса: Plugins_Handler{}
Хуков нет.
Возвращает
true|false
. True if the plugins have changed, otherwise false.
Использование
$Plugins_Handler = new Plugins_Handler(); $Plugins_Handler->have_plugins_changed( $plugins );
- $plugins(строка[]) (обязательный)
- The plugins list to check against the global cache.
Код Plugins_Handler::have_plugins_changed() Plugins Handler::have plugins changed WC 5.2.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;
}