函数原型:
the_author_meta( string $field = '', int|false $user_id = false )
从用户的DB对象输出字段。默认为当前文章的作者。
the_author_meta 内部调用的函数 get_the_author_meta ,可以参考 get_the_author_meta 的简介。
函数源码:
function the_author_meta( $field = '', $user_id = false ) {
$author_meta = get_the_author_meta( $field, $user_id );
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
}
包含钩子:
apply_filters( "the_author_{$field}", string $author_meta, int|false $user_id )
-
WordPress函数:date_i18n 日期国际化WordPress函数:date_i18n 日期国际化
-
WordPress函数:esc_html__ 转义HTML字符WordPress函数:esc_html__ 转义HTML字符
-
WordPress函数:esc_html_e 转义翻译的字符串并显示WordPress函数:esc_html_e 转义翻译的字符串并显示
-
WordPress函数:esc_html_x 带上下文的转义翻译WordPress函数:esc_html_x 带上下文的转义翻译
-
WordPress函数:esc_attr__ 转义属性及翻译WordPress函数:esc_attr__ 转义属性及翻译
-
WP Multilang WordPress翻译插件WP Multilang插件的主要功能是提供多语言支持,使用户能够创建多语言版本的网站,满足不同语言用户的需求。
暂无评论,抢个沙发...