Documentation

Stats
in package
Uses UtilsProvider

Stats API

Table of Contents

Methods

getPluginConstantPrefix()  : string
Get the prefix of this plugin so composer packages can dynamically build other constant values on it.
instance()  : mixed
New instance.
permission_callback()  : mixed
Check if user is allowed to call this service requests.
rest_api_init()  : mixed
Register endpoints.
routeGetStats()  : mixed
See API docs.
__construct()  : mixed
C'tor.

Methods

getPluginConstantPrefix()

Get the prefix of this plugin so composer packages can dynamically build other constant values on it.

public getPluginConstantPrefix() : string
Tags
codeCoverageIgnore

It only returns a string with the constant prefix

Return values
string

instance()

New instance.

public static instance() : mixed

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

routeGetStats()

See API docs.

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

{string} X-WP-Nonce

apiParam

{string='main','buttonsClicked','dnt'} type

apiParam

{string} from From date in format YYYY-MM-DD

apiParam

{string} to From date in format YYYY-MM-DD

apiName

Get

apiGroup

Stats

apiVersion

1.0.0

apiPermission

manage_options, PRO

__construct()

C'tor.

private __construct() : mixed

        
On this page

Search results