WC_Woo_Update_Manager_Plugin
in package
WC_Helper_Plugin Class
Contains the logic to manage the Woo Update Manager plugin.
Table of Contents
- WOO_UPDATE_MANAGER_DOWNLOAD_URL = 'https://woocommerce.com/product-download/woo-update-manager'
- WOO_UPDATE_MANAGER_PLUGIN_MAIN_FILE = 'woo-update-manager/woo-update-manager.php'
- WOO_UPDATE_MANAGER_SLUG = 'woo-update-manager'
- generate_install_url() : string
- Generate the URL to install the Woo Update Manager plugin.
- get_plugin_slug() : int
- Get the id of the Woo Update Manager plugin.
- is_plugin_active() : bool
- Check if the Woo Update Manager plugin is active.
- is_plugin_installed() : bool
- Check if the Woo Update Manager plugin is installed.
- load() : void
- Loads the class, runs on init.
- show_woo_update_manager_install_notice() : void
- Show a notice on the WC admin pages to install or activate the Woo Update Manager plugin.
- activate_admin_notice_dismissed() : bool
- Check if the activation notice has been dismissed.
- install_admin_notice_dismissed() : bool
- Check if the installation notice has been dismissed.
Constants
WOO_UPDATE_MANAGER_DOWNLOAD_URL
public
mixed
WOO_UPDATE_MANAGER_DOWNLOAD_URL
= 'https://woocommerce.com/product-download/woo-update-manager'
WOO_UPDATE_MANAGER_PLUGIN_MAIN_FILE
public
mixed
WOO_UPDATE_MANAGER_PLUGIN_MAIN_FILE
= 'woo-update-manager/woo-update-manager.php'
WOO_UPDATE_MANAGER_SLUG
public
mixed
WOO_UPDATE_MANAGER_SLUG
= 'woo-update-manager'
Methods
generate_install_url()
Generate the URL to install the Woo Update Manager plugin.
public
static generate_install_url() : string
Return values
string —get_plugin_slug()
Get the id of the Woo Update Manager plugin.
public
static get_plugin_slug() : int
Return values
int —is_plugin_active()
Check if the Woo Update Manager plugin is active.
public
static is_plugin_active() : bool
Return values
bool —is_plugin_installed()
Check if the Woo Update Manager plugin is installed.
public
static is_plugin_installed() : bool
Return values
bool —load()
Loads the class, runs on init.
public
static load() : void
Return values
void —show_woo_update_manager_install_notice()
Show a notice on the WC admin pages to install or activate the Woo Update Manager plugin.
public
static show_woo_update_manager_install_notice() : void
Return values
void —activate_admin_notice_dismissed()
Check if the activation notice has been dismissed.
protected
static activate_admin_notice_dismissed() : bool
Return values
bool —install_admin_notice_dismissed()
Check if the installation notice has been dismissed.
protected
static install_admin_notice_dismissed() : bool