WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
79 | /** |
80 | * Fires immediately after a user is invited to join a site, but before the notification is sent. |
81 | * |
82 | * @since 4.4.0 |
83 | * |
84 | * @param int $user_id The invited user's ID. |
85 | * @param array $role The role of invited user. |
86 | * @param string $newuser_key The key of the invitation. |
87 | */ |
88 | do_action( 'invite_user', $user_id, $role, $newuser_key ); |
89 |
|
90 | $switched_locale = switch_to_locale( get_user_locale( $user_details ) ); |
91 |
|
92 | /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */ |
93 | $message = __( 'Hi, |
94 |
|
95 | You\'ve been invited to join \'%1$s\' at |
96 | %2$s with the role of %3$s. |
97 |
|