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 |
---|---|
172 | * The filter name is dynamic and depends on the $field parameter of the function. |
173 | * |
174 | * @since 2.8.0 |
175 | * @since 4.3.0 The `$original_user_id` parameter was added. |
176 | * |
177 | * @param string $value The value of the metadata. |
178 | * @param int $user_id The user ID for the value. |
179 | * @param int|bool $original_user_id The original user ID, as passed to the function. |
180 | */ |
181 | return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id ); |
182 | } |
183 |
|
184 | /** |
185 | * Outputs the field from the user's DB object. Defaults to current post's author. |
186 | * |
187 | * @since 2.8.0 |
188 | * |
189 | * @param string $field Selects the field of the users record. See get_the_author_meta() |
190 | * for the list of possible fields. |