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 | /* translators: 1: Site name, 2: site URL, 3: role, 4: activation URL */ |
91 | $message = __( 'Hi, |
92 |
|
93 | You\'ve been invited to join \'%1$s\' at |
94 | %2$s with the role of %3$s. |
95 |
|
96 | Please click the following link to confirm the invite: |
97 | %4$s' ); |