Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions

ProcessCoreProfilerPluginInstallOptions::get_install_options()publicWC 1.0

Retrieve install options for a plugin.

Method of the class: ProcessCoreProfilerPluginInstallOptions{}

No Hooks.

Return

Array|null. Install options or null if not found.

Usage

$ProcessCoreProfilerPluginInstallOptions = new ProcessCoreProfilerPluginInstallOptions();
$ProcessCoreProfilerPluginInstallOptions->get_install_options( $plugin_slug ): ?array;
$plugin_slug(string) (required)
Plugin slug.

ProcessCoreProfilerPluginInstallOptions::get_install_options() code WC 9.8.1

public function get_install_options( string $plugin_slug ): ?array {
	foreach ( $this->plugins as $plugin ) {
		if ( $this->matches_plugin_slug( $plugin, $plugin_slug ) ) {
			return $plugin->install_options ?? null;
		}
	}
	return null;
}