rest_after_insert_application_password action-hook . WP 5.6.0
Fires after a single application password is completely created or updated via the REST API.
Usage
add_action( 'rest_after_insert_application_password', 'action_function_name_7616', 10, 3 ); function action_function_name_7616( $item, $request, $creating ){ // action... }
- $item(array)
- Inserted or updated password item.
- $request(WP_REST_Request)
- Request object.
- $creating(true/false)
- True when creating an application password, false when updating.
Changelog
Since 5.6.0 | Introduced. |
Where the hook is called
rest_after_insert_application_password
rest_after_insert_application_password
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php 215
do_action( 'rest_after_insert_application_password', $item, $request, true );
wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php 280
do_action( 'rest_after_insert_application_password', $item, $request, false );