Gets the slugs of plugins that the dependent requires.
Parameters
$plugin_file
stringrequired- The dependent plugin’s filepath, relative to the plugins directory.
Source
public static function get_dependencies( $plugin_file ) {
if ( isset( self::$dependencies[ $plugin_file ] ) ) {
return self::$dependencies[ $plugin_file ];
}
return array();
}
Changelog
Version | Description |
---|---|
6.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.