Automattic\WooCommerce\Blueprint\Steps
InstallTheme::__construct
InstallTheme constructor.
Метод класса: InstallTheme{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$InstallTheme = new InstallTheme(); $InstallTheme->__construct( $slug, $resource, $options );
- $slug(строка) (обязательный)
- The slug of the theme to be installed.
- $resource(строка) (обязательный)
- The resource URL or path to the theme's ZIP file.
- $options(массив)
- Additional options for the theme installation.
По умолчанию: array()
Код InstallTheme::__construct() InstallTheme:: construct WC 10.0.2
public function __construct( $slug, $resource, array $options = array() ) { $this->slug = $slug; $this->resource = $resource; $this->options = $options; }