Admin extends Controller

Manages WP admin.

Table of Contents

$routes  : array<string|int, mixed>
Controller routes.
__construct()  : mixed
Class constructor.
deactivate_plugin()  : WP_Rest_Response
Deactivates HivePress plugin.
get_routes()  : array<string|int, mixed>
Gets controller routes.
update_admin_notice()  : WP_Rest_Response
Updates admin notice.
boot()  : mixed
Bootstraps controller properties.
set_property()  : mixed
Sets a property value.

Properties

Methods

__construct()

Class constructor.

public __construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
$args : array<string|int, mixed> = []

Controller arguments.

Return values
mixed

deactivate_plugin()

Deactivates HivePress plugin.

public deactivate_plugin(WP_REST_Request $request) : WP_Rest_Response
Parameters
$request : WP_REST_Request

API request.

Return values
WP_Rest_Response

update_admin_notice()

Updates admin notice.

public update_admin_notice(WP_REST_Request $request) : WP_Rest_Response
Parameters
$request : WP_REST_Request

API request.

Return values
WP_Rest_Response

set_property()

Sets a property value.

protected final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
$name : string

Property name.

$value : mixed

Property value.

$prefix : string = ''

Method prefix.

Return values
mixed