rest_add_application_passwords_to_index() – Adds Application Passwords info to the REST API index.
Description
Adds Application Passwords info to the REST API index.
Usage
$WP_REST_Response = rest_add_application_passwords_to_index( $response );
Parameters
- $response
- ( WP_REST_Response ) required – The index response object.
Returns
WP_REST_Response
Source
File name: wordpress/wp-includes/rest-api.php
Lines:
1 to 13 of 13
function rest_add_application_passwords_to_index( $response ) { if ( ! wp_is_application_passwords_available() ) { return $response; } $response->data['authentication']['application-passwords'] = array( 'endpoints' => array( 'authorization' => admin_url( 'authorize-application.php' ), ), ); return $response; }