Project Type: WordPress Reference

WP_REST_Revisions_Controller

Core class used to access revisions via the REST API. Provides read-only access to post revisions plus deletion capability. Class Synopsis class WP_REST_Revisions_Controller extends WP_REST_Controller { private $parent_post_type; private $parent_controller;...

WP_REST_Terms_Controller

Core class used to manage terms associated with a taxonomy via the REST API. Class Synopsis class WP_REST_Terms_Controller extends WP_REST_Controller { protected $taxonomy; protected $meta; protected $sort_column; protected $total_terms; protected...

WP_REST_Users_Controller

Core class used to manage users via the REST API. Class Synopsis class WP_REST_Users_Controller extends WP_REST_Controller { protected $meta; protected $allow_batch = array( 'v1' => true ); public function __construct();...

REST API Controller Hooks

Overview REST API controllers fire numerous hooks for filtering and action purposes. Most hooks include a dynamic portion based on the resource type (post type, taxonomy, etc.). Common Hook Patterns...

WordPress REST API Controllers Overview

Architecture WordPress REST API controllers follow a consistent object-oriented architecture based on the abstract WP_REST_Controller class. Each controller manages a specific resource type (posts, users, comments, terms, etc.) and provides...

WP_REST_Request

Core class implementing a REST request object. Contains request data passed to endpoint callbacks. Source: wp-includes/rest-api/class-wp-rest-request.php Since: 4.4.0 Implements ArrayAccess for parameter access: $request['param'] is equivalent to $request->get_param('param'). Properties Property...

Recovery Mode

Error protection system that detects fatal errors from plugins/themes and allows administrators to safely access the site. Since: 5.2.0 Source: wp-includes/class-wp-recovery-mode.php, wp-includes/error-protection.php Components Component Description functions.md Core helper functions for...

WP_REST_Attachments_Controller

Core controller used to access attachments (media) via the REST API. Extends WP_REST_Posts_Controller with media-specific functionality. Class Synopsis class WP_REST_Attachments_Controller extends WP_REST_Posts_Controller { protected $allow_batch = false; public function register_routes();...

WP_REST_Comments_Controller

Core controller used to access comments via the REST API. Class Synopsis class WP_REST_Comments_Controller extends WP_REST_Controller { protected $meta; public function __construct(); public function register_routes(); // Permission Checks public function...

WP_REST_Controller

Abstract base class for all REST API controllers. Provides the foundation for managing and interacting with REST API resources. Class Synopsis abstract class WP_REST_Controller { protected $namespace; protected $rest_base; protected...

← Back to Chubes.net