Automattic\WooCommerce\Internal\Admin\RemoteFreeExtensions
ProcessCoreProfilerPluginInstallOptions::__construct
Constructor.
Метод класса: ProcessCoreProfilerPluginInstallOptions{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$ProcessCoreProfilerPluginInstallOptions = new ProcessCoreProfilerPluginInstallOptions(); $ProcessCoreProfilerPluginInstallOptions->__construct( $plugins, $slug, ?WC_Logger_Interface $logger );
- $plugins(массив) (обязательный)
- List of plugins.
- $slug(строка) (обязательный)
- Plugin slug.
- ?WC_Logger_Interface $logger
- .
По умолчанию:null
Код ProcessCoreProfilerPluginInstallOptions::__construct() ProcessCoreProfilerPluginInstallOptions:: construct WC 11.1.0
public function __construct( array $plugins, string $slug, ?WC_Logger_Interface $logger = null ) {
$this->plugins = $plugins;
$this->slug = $slug;
$this->logger = $logger ?? wc_get_logger();
}