rest_after_insert_application_password хук-событие . WP 5.6.0
Fires after a single application password is completely created or updated via the REST API.
Использование
add_action( 'rest_after_insert_application_password', 'action_function_name_2181', 10, 3 ); function action_function_name_2181( $item, $request, $creating ){ // action... }
- $item(массив)
- Inserted or updated password item.
- $request(WP_REST_Request)
- Request object.
- $creating(true/false)
- True when creating an application password, false when updating.
Список изменений
С версии 5.6.0 | Введена. |
Где вызывается хук
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 );