Admin_Controller implements Service, Registerable, Conditional Uses Service_Container
Handles general admin functions, such as adding links to our settings page in the Plugins menu.
Tags
Interfaces, Classes and Traits
- Service
- Registerable
- Conditional
Table of Contents
- $plugin : mixed
- __construct() : mixed
- Constructor - set up plugin instance
- add_services() : mixed
- This method returns an array of services to register.
- is_required() : bool
- Check if it's required to load the service on certain requests
- register() : mixed
- Register services and necessary hooks
Properties
$plugin
private
mixed
$plugin
Methods
__construct()
Constructor - set up plugin instance
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
-
The plugin instance
Return values
mixed —add_services()
This method returns an array of services to register.
public
add_services() : mixed
Return values
mixed —is_required()
Check if it's required to load the service on certain requests
public
is_required() : bool
Return values
bool —register()
Register services and necessary hooks
public
register() : mixed