\DevOwl\RealProductManagerWpClient\restAnnouncement

Create announcement REST service.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
setupConstants()
rest_api_init()
permission_callback()
routeActive()
routeDeleteView()
instance()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
__construct()
No private properties found
N/A

Methods

getPluginConstantPrefix()

getPluginConstantPrefix(): string

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

Returns

string

setupConstants()

setupConstants()

Make sure the RPM_WP_CLIENT constants are available.

rest_api_init()

rest_api_init()

Register endpoints.

permission_callback()

permission_callback()

Check if user is allowed to call this service requests.

routeActive()

routeActive(\WP_REST_Request  $request)

See API docs.

Parameters

\WP_REST_Request $request

routeDeleteView()

routeDeleteView(\WP_REST_Request  $request)

See API docs.

Parameters

\WP_REST_Request $request

instance()

instance()

New instance.

__construct()

__construct()

C'tor.