Secure
in package
Site security.
- Remove user related REST endpoints for non-logged in users.
Tags
Table of Contents
Properties
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- remove_endpoints() : array<string|int, string>
- Remove some REST endpoints for vistors.
- __construct() : void
- Initialise the class.
Properties
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
Methods
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
remove_endpoints()
Remove some REST endpoints for vistors.
public
remove_endpoints(array<string|int, string> $endpoints) : array<string|int, string>
Parameters
- $endpoints : array<string|int, string>
-
The array of available REST API endpoints.
Tags
Return values
array<string|int, string> —The modified endpoints.
__construct()
Initialise the class.
protected
__construct() : void