Referencing the code examples in this post: http://www.gravityhelp.com/forums/topic/sending-form-to-author-of-post I'm still having issues.
This is what I'm using:
add_filter( 'gform_notification_email_2', 'route_notification', 10, 2 );
function route_notification($email_to, $entry) {
global $post;
$email_to = get_the_author_email();
return $email_to;
}
Now, theoretically, even if the system isn't sending the emails, the ENTRIES should show the populated (author email) field right? I even tried defining a hardcoded email to $email_to. Nothing.
I used Jan's suggest code snippet in the aforementioned thread but I'm not sure which parameter I'm supposed to be passing to the form field. $email_to, gform_notification_email_2 or route_notification (none of which work).
The form I'm testing this with is found here: http://metrostudentmedia.com/next_metradio/shows/a-game2
Please advise on both questions.