the_author_meta

The timeline below displays how wordpress function the_author_meta has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.2

/**
 * Outputs the field from the user's DB object. Defaults to current post's author.
 *
 * @since 2.8.0
 *
 * @param string    $field   Selects the field of the users record. See get_the_author_meta()
 *                           for the list of possible fields.
 * @param int|false $user_id Optional. User ID. Defaults to the current post author.
 *
 * @see get_the_author_meta()
 */
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);
}

WordPress Version: 6.1

/**
 * Outputs the field from the user's DB object. Defaults to current post's author.
 *
 * @since 2.8.0
 *
 * @param string    $field   Selects the field of the users record. See get_the_author_meta()
 *                           for the list of possible fields.
 * @param int|false $user_id Optional. User ID.
 *
 * @see get_the_author_meta()
 */
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);
}

WordPress Version: 5.2

/**
 * Outputs the field from the user's DB object. Defaults to current post's author.
 *
 * @since 2.8.0
 *
 * @param string    $field   Selects the field of the users record. See get_the_author_meta()
 *                           for the list of possible fields.
 * @param int|false $user_id Optional. User ID.
 *
 * @see get_the_author_meta()
 */
function the_author_meta($field = '', $user_id = false)
{
    $author_meta = get_the_author_meta($field, $user_id);
    /**
     * 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);
}

WordPress Version: 4.9

/**
 * Outputs the field from the user's DB object. Defaults to current post's author.
 *
 * @since 2.8.0
 *
 * @param string $field   Selects the field of the users record. See get_the_author_meta()
 *                        for the list of possible fields.
 * @param int    $user_id Optional. User ID.
 *
 * @see get_the_author_meta()
 */
function the_author_meta($field = '', $user_id = false)
{
    $author_meta = get_the_author_meta($field, $user_id);
    /**
     * 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    $user_id     The user ID.
     */
    echo apply_filters("the_author_{$field}", $author_meta, $user_id);
}

WordPress Version: 4.8

/**
 * Outputs the field from the user's DB object. Defaults to current post's author.
 *
 * @link https://codex.wordpress.org/Template_Tags/the_author_meta
 *
 * @since 2.8.0
 *
 * @param string $field selects the field of the users record.
 * @param int $user_id Optional. User ID.
 */
function the_author_meta($field = '', $user_id = false)
{
    $author_meta = get_the_author_meta($field, $user_id);
    /**
     * 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    $user_id     The user ID.
     */
    echo apply_filters("the_author_{$field}", $author_meta, $user_id);
}

WordPress Version: 4.3

/**
 * Outputs the field from the user's DB object. Defaults to current post's author.
 *
 * @link https://codex.wordpress.org/Template_Tags/the_author_meta
 *
 * @since 2.8.0
 *
 * @param string $field selects the field of the users record.
 * @param int $user_id Optional. User ID.
 */
function the_author_meta($field = '', $user_id = false)
{
    $author_meta = get_the_author_meta($field, $user_id);
    /**
     * 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    $user_id     The user ID.
     */
    echo apply_filters('the_author_' . $field, $author_meta, $user_id);
}

WordPress Version: 4.2

/**
 * Retrieve the requested data of the author of the current post.
 * @link https://codex.wordpress.org/Template_Tags/the_author_meta
 * @since 2.8.0
 * @param string $field selects the field of the users record.
 * @param int $user_id Optional. User ID.
 * @echo string The author's field from the current author's DB object.
 */
function the_author_meta($field = '', $user_id = false)
{
    $author_meta = get_the_author_meta($field, $user_id);
    /**
     * 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    $user_id     The user ID.
     */
    echo apply_filters('the_author_' . $field, $author_meta, $user_id);
}

WordPress Version: 3.7

/**
 * Retrieve the requested data of the author of the current post.
 * @link http://codex.wordpress.org/Template_Tags/the_author_meta
 * @since 2.8.0
 * @param string $field selects the field of the users record.
 * @param int $user_id Optional. User ID.
 * @echo string The author's field from the current author's DB object.
 */
function the_author_meta($field = '', $user_id = false)
{
    $author_meta = get_the_author_meta($field, $user_id);
    /**
     * 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    $user_id     The user ID.
     */
    echo apply_filters('the_author_' . $field, $author_meta, $user_id);
}