Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions
ProcessCoreProfilerPluginInstallOptions::matches_plugin_slug
Checks if the given plugin matches the provided slug.
Method of the class: ProcessCoreProfilerPluginInstallOptions{}
No Hooks.
Returns
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() ProcessCoreProfilerPluginInstallOptions::matches plugin slug code WC 10.8.1
private function matches_plugin_slug( object $plugin, string $plugin_slug ): bool {
return explode( ':', $plugin->key )[0] === $plugin_slug;
}