pfeifferNet

Secure
in package

Site security.

  • Remove user related REST endpoints for non-logged in users.
Tags
since
5.10.0
since
5.11.0

Deprecated global singleton.

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
since
5.11.0

Methods

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
5.11.0
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
since
5.10.0
link
https://developer.wordpress.org/reference/hooks/rest_endpoints/
Return values
array<string|int, string>

The modified endpoints.

__construct()

Initialise the class.

protected __construct() : void
Tags
since
5.11.0

        
On this page

Search results