WordPress at Your Fingertips
filter is not described

rest_pre_insert_application_password filter-hook . WP 5.6.0

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

Usage

add_filter( 'rest_pre_insert_application_password', 'filter_function_name_6166', 10, 2 );
function filter_function_name_6166( $prepared, $request ){
	// filter...

	return $prepared;
}
$prepared(stdClass)
An object representing a single application password prepared for inserting or updating the database.
$request(WP_REST_Request)
Request object.

Changelog

Since 5.6.0 Introduced.

Where the hook is called

WP_REST_Application_Passwords_Controller::prepare_item_for_database()
rest_pre_insert_application_password
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php 594
return apply_filters( 'rest_pre_insert_application_password', $prepared, $request );

Where in WP core the hook is used WordPress

Usage not found.