WP HOOKS
akcjaod 5.6.0

rest_after_insert_application_password

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

Opis — z kodu źródłowego

Fires after a single application password is completely created or updated via the REST API.

Parametry

ParametrTypOpis
$itemarrayInserted or updated password item.
$request\WP_REST_RequestRequest object.
$creatingboolTrue when creating an application password, false when updating.

Wywołanie

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

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

Popularne w tej kategorii