WC_WCCOM_Site_Installation_Step_Activate_Product
in package
implements
WC_WCCOM_Site_Installation_Step
WC_WCCOM_Site_Installation_Step_Activate_Product Class
Interfaces, Classes and Traits
Table of Contents
- $state : WC_WCCOM_Site_Installation_State
- The current installation state.
- __construct() : mixed
- Constructor.
- run() : mixed
- Run the step installation process.
- activate_plugin() : void
- Activate plugin.
- activate_theme() : void
- Activate theme.
- get_wporg_product_dir_name() : string|false
- Get WP.org product directory name.
Properties
$state
The current installation state.
protected
WC_WCCOM_Site_Installation_State
$state
Methods
__construct()
Constructor.
public
__construct(array<string|int, mixed> $state) : mixed
Parameters
- $state : array<string|int, mixed>
-
The current installation state.
Return values
mixed —run()
Run the step installation process.
public
run() : mixed
Return values
mixed —activate_plugin()
Activate plugin.
private
activate_plugin(int $product_id) : void
Parameters
- $product_id : int
-
Product ID.
Tags
Return values
void —activate_theme()
Activate theme.
private
activate_theme(int $product_id) : void
Parameters
- $product_id : int
-
Product ID.
Tags
Return values
void —get_wporg_product_dir_name()
Get WP.org product directory name.
private
get_wporg_product_dir_name() : string|false