最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
AUTHOR_EMAIL FILTER自定义评论作者的EMAIL
时间:2015-02-06 编辑:简简单单 来源:一聚教程网
apply_filters ( ‘author_email’, string $author_email, int $comment_ID )
在wp-includes/comment-template.php的comment_author_email函数中用到了author_email的filter。
function comment_author_email( $comment_ID = 0 ) {
$author_email = get_comment_author_email( $comment_ID );
/**
* Filter the comment author's email for display.
*
* @since 1.2.0
* @since 4.1.0 The `$comment_ID` parameter was added.
*
* @param string $author_email The comment author's email address.
* @param int $comment_ID The comment ID.
*/
echo apply_filters( 'author_email', $author_email, $comment_ID );
}
-
下一个: wordpress个人主题开发教程
相关文章
- ECShop添加自定义最新评论模块 01-12
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31