WordPress at a glance
action is not described

invite_user action-hook . WP 4.4.0

Fires immediately after a user is invited to join a site, but before the notification is sent.


add_action( 'invite_user', 'action_function_name_8520', 10, 3 );
function action_function_name_8520( $user_id, $role, $newuser_key ){
	// action...
The invited user's ID.
Array containing role information for the invited user.
The key of the invitation.

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

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

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

В файле: /wp-admin/user-new.php
wp-admin/user-new.php 111
do_action( 'invite_user', $user_id, $role, $newuser_key );

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

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