the_author_(field) хук-фильтр . WP 2.8.0
The value of the requested user metadata.
The filter name is dynamic and depends on the $field parameter of the function.
Использование
add_filter( 'the_author_(field)', 'filter_function_name_7402', 10, 2 ); function filter_function_name_7402( $author_meta, $user_id ){ // filter... return $author_meta; }
- $author_meta(строка)
- The value of the metadata.
- $user_id(число/false)
- The user ID.
Список изменений
С версии 2.8.0 | Введена. |
Где вызывается хук
the_author_(field)
wp-includes/author-template.php 216
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );