Definition:
function get_the_author_email() {}
Retrieve the email of the author of the current post.
Return values
returns:The author’s username.
Source code
function get_the_author_email() { _deprecated_function( __FUNCTION__, '2.8', 'get_the_author_meta(\'email\')' ); return get_the_author_meta('email'); }
1789
Hi, I recenlty tried with a wp 3.3 and shows this:
Fatal error: Cannot redeclare get_the_author_email() (previously declared in /home/srv/www/domain.com/wp-includes/deprecated.php:1472) in /home/srv/www/domain.com/wp-content/themes/mytheme/functions-hacks.php on line 372
The line is were I put the code.
Thanx 🙂
That sounds like you’re trying to redefine the function in your theme rather than using it. This function is also deprecated and you should use get_the_author_meta(‘user_email’).