WP_REST_Application_Passwords_Controller::prepare_links( WP_User $user, array $item )

Prepares links for the request.

Parameters Parameters


(WP_User) (Required) The requested user.


(array) (Required) The application password.

Top ↑

Return Return

(array) The list of links.

Top ↑

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php

	protected function prepare_links( WP_User $user, $item ) {
		return array(
			'self' => array(
				'href' => rest_url( sprintf( '%s/users/%d/application-passwords/%s', $this->namespace, $user->ID, $item['uuid'] ) ),

Top ↑

Changelog Changelog

Version Description
5.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.