WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Получай пассивный доход от сайта с помощью браузерных PUSH уведомлений
функция не описана


Latest_Autoloader_Guard::should_stop_init() public WC 1.0

Indicates whether or not the autoloader should be initialized. Note that this function has the side-effect of actually loading the latest autoloader in the event that this is not it.

{} Это метод класса: Latest_Autoloader_Guard{}

Хуков нет.


true|false. True if we should stop initialization, otherwise false.


$Latest_Autoloader_Guard = new Latest_Autoloader_Guard();
$Latest_Autoloader_Guard->should_stop_init( $current_plugin, $plugins, $was_included_by_autoloader );
$current_plugin(строка) (обязательный)
The current plugin we're checking.
$plugins(строка[]) (обязательный)
The active plugins to check for autoloaders in.
$was_included_by_autoloader(true|false) (обязательный)
Indicates whether or not this autoloader was included by another.

Код Latest_Autoloader_Guard::should_stop_init() WC 5.2.2

public function should_stop_init( $current_plugin, $plugins, $was_included_by_autoloader ) {
	global $jetpack_autoloader_latest_version;

	// We need to reset the autoloader when the plugins change because
	// that means the autoloader was generated with a different list.
	if ( $this->plugins_handler->have_plugins_changed( $plugins ) ) {

	// When the latest autoloader has already been found we don't need to search for it again.
	// We should take care however because this will also trigger if the autoloader has been
	// included by an older one.
	if ( isset( $jetpack_autoloader_latest_version ) && ! $was_included_by_autoloader ) {
		return true;

	$latest_plugin = $this->autoloader_locator->find_latest_autoloader( $plugins, $jetpack_autoloader_latest_version );
	if ( isset( $latest_plugin ) && $latest_plugin !== $current_plugin ) {
		require $this->autoloader_locator->get_autoloader_path( $latest_plugin );
		return true;

	return false;