WP_Plugin_Dependencies::has_dependenciespublic staticWP 6.5.0

Determines whether the plugin has plugin dependencies.

Метод класса: WP_Plugin_Dependencies{}

Хуков нет.

Возвращает

true|false. Whether a plugin has plugin dependencies.

Использование

$result = WP_Plugin_Dependencies::has_dependencies( $plugin_file );
$plugin_file(строка) (обязательный)
The plugin's filepath, relative to the plugins directory.

Список изменений

С версии 6.5.0 Введена.

Код WP_Plugin_Dependencies::has_dependencies() WP 6.8.1

public static function has_dependencies( $plugin_file ) {
	return isset( self::$dependencies[ $plugin_file ] );
}