
面向WordPress用户的MAMP Pro终极指南
apply_filters( "the_author_{$field}", $author_meta, $user_id )
the_author_{$field}是一个模板标签,允许你从作者的个人资料中显示一个特定的字段,其中$field是你想显示的字段的名称。例如,the_author_email将显示作者的电子邮件地址。
过滤所请求的用户元数据的值。
过滤器的名称是动态的,取决于该函数的$field参数。
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );