WP_Plugin_Dependencies::has_dependencies
Determines whether the plugin has plugin dependencies.
Method of the class: WP_Plugin_Dependencies{}
No Hooks.
Returns
true|false. Whether a plugin has plugin dependencies.
Usage
$result = WP_Plugin_Dependencies::has_dependencies( $plugin_file );
- $plugin_file(string) (required)
- The plugin's filepath, relative to the plugins directory.
Changelog
| Since 6.5.0 | Introduced. |
WP_Plugin_Dependencies::has_dependencies() WP Plugin Dependencies::has dependencies code WP 6.9.1
public static function has_dependencies( $plugin_file ) {
return isset( self::$dependencies[ $plugin_file ] );
}