wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
the_author_meta › WordPress Function
Da2.8.0
Deprecaton/a
› the_author_meta ( $field = '', $user_id = false )
| Parametri: (2) |
|
| Vedi: | |
| Definito a: |
|
| Codex: |
Outputs the field from the user's DB object. Defaults to current post's author.
Funzioni correlate: get_the_author_meta, the_author_email, the_author_aim, the_author_msn, the_author_yim
Sorgenti
function the_author_meta( $field = '', $user_id = false ) {
$author_meta = get_the_author_meta( $field, $user_id );
/**
* Filters the value of the requested user metadata.
*
* The filter name is dynamic and depends on the $field parameter of the function.
*
* @since 2.8.0
*
* @param string $author_meta The value of the metadata.
* @param int|false $user_id The user ID.
*/
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
}