有个需求,想根据email决定输出的头像,如何处理呢?代码如下:

add_filter('get_avatar', 'author_avatar', 1, 5);function author_avatar($avatar, $id_or_email[......]

Read more