AbstractRestController

Base class for custom REST routes.

  • Full name: \CEKW\WpPlugin\AbstractRestController
Table of contents
  1. Methods
    1. permissionCheck
    2. getArgs

Methods

permissionCheck

Checks if the user can perform the action (reading, updating, etc) before the real callback is called.

AbstractRestController::permissionCheck(): bool|\WP_Error

Returns: bool|\WP_Error

getArgs

Defines arguments for the route.

AbstractRestController::getArgs(): array

Returns: array