I just upgraded WP and Gravity Forms on one of my sites and now the customised email notifications have stopped working. Emails are now sent to Notification to Administrator -> Email field instead of the post author as intended using the hook below.
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;
}
Is the above code still the preferred method for changing notifications to the post author?