I have a plugin filter that isn't working for me:
add_filter( 'gform_notification_email_3', 'route_notification', 10, 2 );
function route_notification($email_to, $entry) {
global $post;
$email_to = get_the_author_email();
return $email_to;
}
I think the $email_to variable isn't being set properly, but how do I echo this variable out to check it?