rest_pre_insert_application_password WordPress Filter Hook
The rest_pre_insert_application_password hook is called before a new application password is inserted into the database. The hook allows you to modify the password before it is stored, or even cancel the insert altogether.
apply_filters( 'rest_pre_insert_application_password', stdClass $prepared , WP_REST_Request $request ) #
Filters an application password before it is inserted via the REST API.
Parameters
- $prepared
(stdClass)An object representing a single application password prepared for inserting or updating the database.
- $request
(WP_REST_Request)Request object.
Source
File: wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |