Documentation

Announcement
in package
Uses UtilsProvider

Create announcement REST service.

Table of Contents

Methods

getPluginConstantPrefix()  : string
Get the prefix of this package so we can utils package natively.
instance()  : mixed
New instance.
permission_callback()  : mixed
Check if user is allowed to call this service requests.
rest_api_init()  : mixed
Register endpoints.
routeActive()  : mixed
See API docs.
routeDeleteView()  : mixed
See API docs.
setupConstants()  : mixed
Make sure the RPM_WP_CLIENT constants are available.
__construct()  : mixed
C'tor.

Methods

getPluginConstantPrefix()

Get the prefix of this package so we can utils package natively.

public getPluginConstantPrefix() : string
Return values
string

instance()

New instance.

public static instance() : mixed
Tags
codeCoverageIgnore

permission_callback()

Check if user is allowed to call this service requests.

public permission_callback() : mixed

rest_api_init()

Register endpoints.

public rest_api_init() : mixed

routeActive()

See API docs.

public routeActive(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiHeader

{string} X-WP-Nonce

apiParam

{string} slug

apiParam

{boolean} state

apiName

SetActiveStatus

apiPermission

activate_plugins

apiGroup

Announcement

apiVersion

1.0.0

routeDeleteView()

See API docs.

public routeDeleteView(WP_REST_Request $request) : mixed
APIYes
Parameters
$request : WP_REST_Request
Tags
apiHeader

{string} X-WP-Nonce

apiParam

{string} slug

apiParam

{number} id

apiName

DeleteView

apiPermission

activate_plugins

apiGroup

Announcement

apiVersion

1.0.0

setupConstants()

Make sure the RPM_WP_CLIENT constants are available.

public static setupConstants() : mixed

__construct()

C'tor.

private __construct() : mixed
Tags
codeCoverageIgnore

        
On this page

Search results