rest_add_application_passwords_to_index()
最后更新于:2021-11-27 23:32:08
rest_add_application_passwords_to_index( GC_REST_Response$response)Adds Application Passwords info to the REST API index.
参数
- $response
-
(GC_REST_Response) (Required) The index response object.
响应
源文件
文件: gc-includes/rest-api.php
function rest_add_application_passwords_to_index( $response ) {
if ( ! gc_is_application_passwords_available() ) {
return $response;
}
$response->data['authentication']['application-passwords'] = array(
'endpoints' => array(
'authorization' => admin_url( 'authorize-application.php' ),
),
);
return $response;
}