WordPress at a glance
action is not described

rest_after_insert_user action-hook . WP 5.0.0

Fires after a user is completely created or updated via the REST API.

Usage

add_action( 'rest_after_insert_user', 'action_function_name_3688', 10, 3 );
function action_function_name_3688( $user, $request, $creating ){
	// action...
}
$user(WP_User)
Inserted or updated user object.
$request(WP_REST_Request)
Request object.
$creating(true/false)
True when creating a user, false when updating.

Список изменений

С версии 5.0.0 Введена.

Где вызывается хук

WP_REST_Users_Controller::create_item()
rest_after_insert_user
WP_REST_Users_Controller::update_item()
rest_after_insert_user
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 634
do_action( 'rest_after_insert_user', $user, $request, true );
wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php 786
do_action( 'rest_after_insert_user', $user, $request, false );

Где используется хук в ядре WordPress

Использование не найдено.