Cache extends Base_Route implements Route

REST controller for the uploading files from the frontend.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Route

Table of Contents

$rest_base  : mixed
clear_cache()  : WP_REST_Response|WP_Error
Clear the cache.
permission_callback()  : bool
Permission callback.
register_routes()  : mixed
Register the REST routes.

Properties

$rest_base

protected mixed $rest_base = 'clear-cache'
Tags

Methods

clear_cache()

Clear the cache.

public clear_cache(WP_REST_Request $request) : WP_REST_Response|WP_Error
Parameters
$request : WP_REST_Request
Tags
Return values
WP_REST_Response|WP_Error

permission_callback()

Permission callback.

public permission_callback() : bool
Tags
Return values
bool

register_routes()

Register the REST routes.

public register_routes() : mixed
Tags
Return values
mixed

Search results