Admin_Controller implements Registerable, Standard_Service Uses Service_Container
General Admin Functions
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- $license_setting : mixed
- $plugin : mixed
- __construct() : mixed
- Constructor.
- add_services() : void
- Get the admin services.
- ajax_install_wlp() : void
- AJAX handler to install the WooCommerce Live Preview plugin.
- install_wlp() : array<string|int, mixed>
- Install the WooCommerce Live Preview plugin.
- register() : void
- {@inheritdoc}
- register_assets() : void
- Load admin assets.
- get_notice() : string
- Create a notice to return to the AJAX request.
Properties
$license_setting
private
mixed
$license_setting
Tags
$plugin
private
mixed
$plugin
Tags
Methods
__construct()
Constructor.
public
__construct(Plugin $plugin) : mixed
Parameters
- $plugin : Plugin
Tags
Return values
mixed —add_services()
Get the admin services.
public
add_services() : void
Tags
Return values
void —ajax_install_wlp()
AJAX handler to install the WooCommerce Live Preview plugin.
public
ajax_install_wlp() : void
Tags
Return values
void —install_wlp()
Install the WooCommerce Live Preview plugin.
public
install_wlp([mixed $license_key = null ][, mixed $home_url = null ][, mixed $license_data = null ]) : array<string|int, mixed>
Parameters
- $license_key : mixed = null
- $home_url : mixed = null
- $license_data : mixed = null
Tags
Return values
array<string|int, mixed> —register()
{@inheritdoc}
public
register() : void
Tags
Return values
void —register_assets()
Load admin assets.
public
register_assets(string $hook) : void
Parameters
- $hook : string
Tags
Return values
void —get_notice()
Create a notice to return to the AJAX request.
private
get_notice(string $id, string $title, string $message, array<string|int, mixed> $options) : string
Parameters
- $id : string
-
The ID of the notice.
- $title : string
-
The title of the notice.
- $message : string
-
The message of the notice.
- $options : array<string|int, mixed>
-
An array of options for the notice.