WP_Plugin_Dependencies::has_dependencies( string $plugin_file ): bool

In this article

Determines whether the plugin has plugin dependencies.

Parameters

$plugin_filestringrequired
The plugin’s filepath, relative to the plugins directory.

Return

bool Whether a plugin has plugin dependencies.

Source

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

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.