wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



rest_add_application_passwords_to_index › WordPress Function

Od5.6.0
Przestarzałyn/a
rest_add_application_passwords_to_index ( $response )
Parametry:
  • (WP_REST_Response) $response The index response object.
    Wymagane: Tak
Powrót:
  • (WP_REST_Response)
Zdefiniowane na:
Codex:

Adds Application Passwords info to the REST API index.



Źródło

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;
}