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