WPDev.one
Core Class

WP_REST_Application_Passwords_Controller

class WP_REST_Application_Passwords_Controller // Constructor: function Object() { [native code] }

Core class to access a user's application passwords via the REST API.

Methods 24 methods

Method / Return Description
__construct()
void

Application Passwords controller constructor.

register_routes()
void

Registers the REST API routes for the application passwords controller.

get_items_permissions_check()
(true

Checks if a given request has access to get application passwords.

Parameters: $request: mixed
get_items()
(WP_REST_Response

Retrieves a collection of application passwords.

Parameters: $request: mixed
get_item_permissions_check()
(true

Checks if a given request has access to get a specific application password.

Parameters: $request: mixed
get_item()
(WP_REST_Response

Retrieves one application password from the collection.

Parameters: $request: mixed
create_item_permissions_check()
(true

Checks if a given request has access to create application passwords.

Parameters: $request: mixed
create_item()
(WP_REST_Response

Creates an application password.

Parameters: $request: mixed
update_item_permissions_check()
(true

Checks if a given request has access to update application passwords.

Parameters: $request: mixed
update_item()
(WP_REST_Response

Updates an application password.

Parameters: $request: mixed
delete_items_permissions_check()
(true

Checks if a given request has access to delete all application passwords for a user.

Parameters: $request: mixed
delete_items()
(WP_REST_Response

Deletes all application passwords for a user.

Parameters: $request: mixed
delete_item_permissions_check()
(true

Checks if a given request has access to delete a specific application password for a user.

Parameters: $request: mixed
delete_item()
(WP_REST_Response

Deletes an application password for a user.

Parameters: $request: mixed
get_current_item_permissions_check()
(true

Checks if a given request has access to get the currently used application password for a user.

Parameters: $request: mixed
get_current_item()
(WP_REST_Response

Retrieves the application password being currently used for authentication of a user.

Parameters: $request: mixed
do_permissions_check()
(true

Performs a permissions check for the request.

Parameters: $request: mixed
prepare_item_for_database()
(object

Prepares an application password for a create or update operation.

Parameters: $request: mixed
prepare_item_for_response()
(WP_REST_Response

Prepares the application password for the REST response.

Parameters: $item: mixed, $request: mixed
prepare_links()
array

Prepares links for the request.

Parameters: $user: WP_User, $item: mixed
get_user()
(WP_User

Gets the requested user.

Parameters: $request: mixed
get_application_password()
(array

Gets the requested application password for a user.

Parameters: $request: mixed
get_collection_params()
array

Retrieves the query params for the collections.

get_item_schema()
array

Retrieves the application password's schema, conforming to JSON Schema.

Class Information

Since Version
5.6.0
Source File
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
Advertisement