Admin implements Registerable, Standard_Service Uses Service_Container
General Admin Functions
Tags
Interfaces, Classes and Traits
- Registerable
- Standard_Service
Table of Contents
- $plugin : mixed
- __construct() : mixed
- Constructor.
- add_services() : mixed
- Add services.
- add_settings_page() : array<string|int, mixed>
- Add the settings page to EDD.
- enqueue_scripts() : mixed
- Enqueue the admin assets.
- redirect_after_user_new() : string
- Filter the URL for the redirection after a new user is added.
- register() : mixed
- {@inheritdoc}
- register_scripts() : mixed
- Register the admin assets.
Properties
$plugin
private
mixed
$plugin
Tags
Methods
__construct()
Constructor.
public
__construct(Plugin $plugin) : mixed
Parameters
- $plugin : Plugin
Tags
Return values
mixed —add_services()
Add services.
public
add_services() : mixed
Tags
Return values
mixed —add_settings_page()
Add the settings page to EDD.
public
add_settings_page(array<string|int, mixed> $settings) : array<string|int, mixed>
Parameters
- $settings : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —$settings
enqueue_scripts()
Enqueue the admin assets.
public
enqueue_scripts(string $hook) : mixed
Parameters
- $hook : string
Tags
Return values
mixed —redirect_after_user_new()
Filter the URL for the redirection after a new user is added.
public
redirect_after_user_new(string $location) : string
This filter works only in the contest of a new user being added from the Roles section of the Wholesale Pro settings page.
Parameters
- $location : string
Tags
Return values
string —register()
{@inheritdoc}
public
register() : mixed
Tags
Return values
mixed —register_scripts()
Register the admin assets.
public
register_scripts(mixed $hook) : mixed
Parameters
- $hook : mixed