WC_WCCOM_Site_Installer
in package
WC_WCCOM_Site_Installer Class
Contains functionalities to install products via WooCommerce.com helper connection.
Table of Contents
- $wp_upgrader : WP_Upgrader
- An instance of the WP_Upgrader class to be used for installation.
- get_plugin_info() : bool|array<string|int, mixed>
- Get plugin info
- get_wp_upgrader() : WP_Upgrader
- Get an instance of WP_Upgrader to use for installing plugins.
- get_wporg_plugin_main_file() : bool|string
- Get WP.org plugin's main file.
Properties
$wp_upgrader
An instance of the WP_Upgrader class to be used for installation.
private
static WP_Upgrader
$wp_upgrader
Methods
get_plugin_info()
Get plugin info
public
static get_plugin_info(string $dir) : bool|array<string|int, mixed>
Parameters
- $dir : string
-
Directory name of the plugin.
Tags
Return values
bool|array<string|int, mixed> —get_wp_upgrader()
Get an instance of WP_Upgrader to use for installing plugins.
public
static get_wp_upgrader() : WP_Upgrader
Return values
WP_Upgrader —get_wporg_plugin_main_file()
Get WP.org plugin's main file.
public
static get_wporg_plugin_main_file(string $dir) : bool|string
Parameters
- $dir : string
-
Directory name of the plugin.