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 |
---|---|
84 | /** |
85 | * Fires immediately after a user is invited to join a site, but before the notification is sent. |
86 | * |
87 | * @since 4.4.0 |
88 | * |
89 | * @param int $user_id The invited user's ID. |
90 | * @param array $role The role of invited user. |
91 | * @param string $newuser_key The key of the invitation. |
92 | */ |
93 | do_action( 'invite_user', $user_id, $role, $newuser_key ); |
94 |
|
95 | $switched_locale = switch_to_locale( get_user_locale( $user_details ) ); |
96 |
|
97 | /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */ |
98 | $message = __( 'Hi, |
99 |
|
100 | You\'ve been invited to join \'%1$s\' at |
101 | %2$s with the role of %3$s. |
102 |
|