Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions
ProcessCoreProfilerPluginInstallOptions::get_install_options
Retrieve install options for a plugin.
Метод класса: ProcessCoreProfilerPluginInstallOptions{}
Хуков нет.
Возвращает
Массив|null. Install options or null if not found.
Использование
$ProcessCoreProfilerPluginInstallOptions = new ProcessCoreProfilerPluginInstallOptions(); $ProcessCoreProfilerPluginInstallOptions->get_install_options( $plugin_slug ): ?array;
- $plugin_slug(строка) (обязательный)
- Plugin slug.
Код ProcessCoreProfilerPluginInstallOptions::get_install_options() ProcessCoreProfilerPluginInstallOptions::get install options WC 10.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;
}