\DevOwl\RealCookieBanner\restPresets

Create REST API for all available presets.

Summary

Methods
Properties
Constants
getPluginConstantPrefix()
rest_api_init()
permission_callback()
permission_callback_customize()
routeBannerPresets()
routeBlockerPresets()
routeBlockerPresetsSingle()
routeCookiesPresets()
routeCookiesPresetsSingle()
rest_prepare_presets()
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 plugin so composer packages can dynamically build other constant values on it.

Returns

string

rest_api_init()

rest_api_init()

Register endpoints.

permission_callback()

permission_callback()

Check if user is allowed to call this service requests.

permission_callback_customize()

permission_callback_customize()

Check if user is allowed to call this service requests with `customize` cap.

routeBannerPresets()

routeBannerPresets()

See API docs.

routeBlockerPresets()

routeBlockerPresets(\WP_REST_Request  $request)

See API docs.

Parameters

\WP_REST_Request $request

routeBlockerPresetsSingle()

routeBlockerPresetsSingle(\WP_REST_Request  $request)

See API docs.

Parameters

\WP_REST_Request $request

routeCookiesPresets()

routeCookiesPresets(\WP_REST_Request  $request)

See API docs.

Parameters

\WP_REST_Request $request

routeCookiesPresetsSingle()

routeCookiesPresetsSingle(\WP_REST_Request  $request)

See API docs.

Parameters

\WP_REST_Request $request

rest_prepare_presets()

rest_prepare_presets(\WP_REST_Response  $response,\DevOwl\RealCookieBanner\rest\WP_Post  $post)

Modify the response of the cookie / blocker Custom Post Type.

Parameters

\WP_REST_Response $response

The response object.

\DevOwl\RealCookieBanner\rest\WP_Post $post

Post object.

instance()

instance()

New instance.

__construct()

__construct()

C'tor.