WooCommerce Code Reference

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

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
since
3.9.0
Return values
bool|array<string|int, mixed>

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.

Tags
since
3.7.0
Return values
bool|string