WP_Plugin_Dependencies::has_dependents( string $plugin_file ): bool

In this article

Determines whether the plugin has plugins that depend on it.

Parameters

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

Return

bool Whether the plugin has plugins that depend on it.

Source

public static function has_dependents( $plugin_file ) {
	return in_array( self::convert_to_slug( $plugin_file ), (array) self::$dependency_slugs, true );
}

Changelog

VersionDescription
6.5.0Introduced.

User Contributed Notes

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