WP HOOKS
filtrod 5.6.0

rest_prepare_application_password

Args 3Plik wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.phpDokumentacja WP ↗

Opis — z kodu źródłowego

Filters the REST API response for an application password.

Parametry

ParametrTypOpis
$response\WP_REST_ResponseThe response object.
$itemarrayThe application password array.
$request\WP_REST_RequestThe request object.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'rest_prepare_application_password', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii