Admin_Controller implements Registerable, Service, Service_Provider

General admin setup for WooCommerce Protected Categories.

Tags
author

Barn2 Plugins info@barn2.co.uk

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
An object that can be registered with WordPress via the Plugin API, i.e. add_action() and add_filter().
Service
Marker interface to denote a service.
Service_Provider
An object that provides services (instances of Barn2\WPC_Lib\Service).

Table of Contents

$plugin  : mixed
$services  : mixed
__construct()  : mixed
get_service()  : Service
Get the service for the specified ID.
get_services()  : array<string|int, mixed>
Get the list of services provided.
register()  : mixed
register_admin_scripts()  : mixed

Properties

Methods

get_service()

Get the service for the specified ID.

public get_service(mixed $id) : Service
Parameters
$id : mixed

The service ID

Return values
Service

The service object

get_services()

Get the list of services provided.

public get_services() : array<string|int, mixed>
Return values
array<string|int, mixed>

The list of service objects.

register_admin_scripts()

public register_admin_scripts(mixed $hook) : mixed
Parameters
$hook : mixed
Return values
mixed

Search results