Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions
ProcessCoreProfilerPluginInstallOptions::matches_plugin_slug
Checks if the given plugin matches the provided slug.
Метод класса: ProcessCoreProfilerPluginInstallOptions{}
Хуков нет.
Возвращает
true|false. True if it matches, false otherwise.
Использование
// private - только в коде основоного (родительского) класса $result = $this->matches_plugin_slug( $plugin, $plugin_slug ): bool;
- $plugin(объект) (обязательный)
- Plugin object.
- $plugin_slug(строка) (обязательный)
- Plugin slug.
Код ProcessCoreProfilerPluginInstallOptions::matches_plugin_slug() ProcessCoreProfilerPluginInstallOptions::matches plugin slug WC 10.9.4
private function matches_plugin_slug( object $plugin, string $plugin_slug ): bool {
return explode( ':', $plugin->key )[0] === $plugin_slug;
}