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_4748', 10, 2 ); function filter_function_name_4748( $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
rest_pre_insert_application_password
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php 427
return apply_filters( 'rest_pre_insert_application_password', $prepared, $request );