Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions

ProcessCoreProfilerPluginInstallOptions::matches_plugin_slug()privateWC 1.0

Checks if the given plugin matches the provided slug.

Method of the class: ProcessCoreProfilerPluginInstallOptions{}

No Hooks.

Return

true|false. True if it matches, false otherwise.

Usage

// private - for code of main (parent) class only
$result = $this->matches_plugin_slug( $plugin, $plugin_slug ): bool;
$plugin(object) (required)
Plugin object.
$plugin_slug(string) (required)
Plugin slug.

ProcessCoreProfilerPluginInstallOptions::matches_plugin_slug() code WC 9.8.1

private function matches_plugin_slug( object $plugin, string $plugin_slug ): bool {
	return explode( ':', $plugin->key )[0] === $plugin_slug;
}