PluginUpdate
in package
Uses
UtilsProvider
Create plugin update 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.
- routeDeleteLicense() : mixed
- See API docs.
- routeDismissLicenseNotice() : mixed
- See API docs.
- routeGet() : mixed
- See API docs.
- routePatch() : mixed
- See API docs.
- routeRetryLicense() : mixed
- See API docs.
- routeSkip() : mixed
- See API docs.
- routeTelemetry() : mixed
- See API docs.
- setupConstants() : mixed
- Make sure the RPM_WP_CLIENT constants are available.
- getResult() : mixed
- Get result for a given slug.
- __construct() : mixed
- C'tor.
Methods
getPluginConstantPrefix()
Get the prefix of this package so we can utils package natively.
public
getPluginConstantPrefix() : string
Return values
stringinstance()
New instance.
public
static instance() : mixed
Tags
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
routeDeleteLicense()
See API docs.
public
routeDeleteLicense(WP_REST_Request $request) : mixed
APIYes
Parameters
- $request : WP_REST_Request
Tags
routeDismissLicenseNotice()
See API docs.
public
routeDismissLicenseNotice(WP_REST_Request $request) : mixed
APIYes
Parameters
- $request : WP_REST_Request
Tags
routeGet()
See API docs.
public
routeGet(WP_REST_Request $request) : mixed
APIYes
Parameters
- $request : WP_REST_Request
Tags
routePatch()
See API docs.
public
routePatch(WP_REST_Request $request) : mixed
APIYes
Parameters
- $request : WP_REST_Request
Tags
routeRetryLicense()
See API docs.
public
routeRetryLicense(WP_REST_Request $request) : mixed
APIYes
Parameters
- $request : WP_REST_Request
Tags
routeSkip()
See API docs.
public
routeSkip(WP_REST_Request $request) : mixed
APIYes
Parameters
- $request : WP_REST_Request
Tags
routeTelemetry()
See API docs.
public
routeTelemetry(WP_REST_Request $request) : mixed
APIYes
Parameters
- $request : WP_REST_Request
Tags
setupConstants()
Make sure the RPM_WP_CLIENT constants are available.
public
static setupConstants() : mixed
getResult()
Get result for a given slug.
protected
getResult(string $slug) : mixed
Parameters
- $slug : string
__construct()
C'tor.
private
__construct() : mixed