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 |
---|---|
102 | /** |
103 | * Fires immediately after an existing user is invited to join the site, but before the notification is sent. |
104 | * |
105 | * @since 4.4.0 |
106 | * |
107 | * @param int $user_id The invited user's ID. |
108 | * @param array $role Array containing role information for the invited user. |
109 | * @param string $newuser_key The key of the invitation. |
110 | */ |
111 | do_action( 'invite_user', $user_id, $role, $newuser_key ); |
112 |
|
113 | $switched_locale = switch_to_locale( get_user_locale( $user_details ) ); |
114 |
|
115 | if ( '' !== get_option( 'blogname' ) ) { |
116 | $site_title = wp_specialchars_decode( get_option( 'blogname' ), ENT_QUOTES ); |
117 | } else { |
118 | $site_title = parse_url( home_url(), PHP_URL_HOST ); |
119 | } |
120 |
|