WP HOOKS
filtrod 5.6.0

rest_pre_insert_application_password

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

Opis — z kodu źródłowego

Filters an application password before it is inserted via the REST API.

Parametry

ParametrTypOpis
$prepared\stdClassAn object representing a single application password prepared for inserting or updating the database.
$request\WP_REST_RequestRequest object.

Wywołanie

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

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

Popularne w tej kategorii