| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
REST API list controller for Abilities API.
| File Size: | 364 lines (10 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
WP_REST_Abilities_V1_List_Controller:: (9 methods):
register_routes()
get_items()
get_item()
get_items_permissions_check()
get_item_permissions_check()
normalize_schema_empty_object_defaults()
prepare_item_for_response()
get_item_schema()
get_collection_params()
Class: WP_REST_Abilities_V1_List_Controller - X-Ref
Core controller used to access abilities via the REST API.| register_routes() X-Ref |
| Registers the routes for abilities. |
| get_items( $request ) X-Ref |
| Retrieves all abilities. param: WP_REST_Request $request Full details about the request. return: WP_REST_Response Response object on success. |
| get_item( $request ) X-Ref |
| No description |
| get_items_permissions_check( $request ) X-Ref |
| Checks if a given request has access to read ability items. param: WP_REST_Request $request Full details about the request. return: bool True if the request has read access. |
| get_item_permissions_check( $request ) X-Ref |
| Checks if a given request has access to read an ability item. param: WP_REST_Request $request Full details about the request. return: bool True if the request has read access. |
| normalize_schema_empty_object_defaults( array $schema ) X-Ref |
| Normalizes schema empty object defaults. Converts empty array defaults to objects when the schema type is 'object' to ensure proper JSON serialization as {} instead of []. param: array<string, mixed> $schema The schema array. return: array<string, mixed> The normalized schema. |
| prepare_item_for_response( $ability, $request ) X-Ref |
| Prepares an ability for response. param: WP_Ability $ability The ability object. param: WP_REST_Request $request Request object. return: WP_REST_Response Response object. |
| get_item_schema() X-Ref |
| Retrieves the ability's schema, conforming to JSON Schema. return: array<string, mixed> Item schema data. |
| get_collection_params() X-Ref |
| Retrieves the query params for collections. return: array<string, mixed> Collection parameters. |
| Generated : Tue May 5 08:20:14 2026 | Cross-referenced by PHPXref |