<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Does the gform_notification_email filter still work?</title>
		<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email</link>
		<description>Gravity Support Forums Topic: Does the gform_notification_email filter still work?</description>
		<language>en-US</language>
		<pubDate>Thu, 23 Apr 2026 18:27:27 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/does-the-gform_notification_email" rel="self" type="application/rss+xml" />

		<item>
			<title>sevendayweekend on "Does the gform_notification_email filter still work?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email#post-23595</link>
			<pubDate>Mon, 18 Apr 2011 15:30:00 +0000</pubDate>
			<dc:creator>sevendayweekend</dc:creator>
			<guid isPermaLink="false">23595@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Looks like it has been deprecated: &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/the_author_email&#34; rel=&#34;nofollow&#34;&#62;http://codex.wordpress.org/Function_Reference/the_author_email&#60;/a&#62; . Could well be effecting other users with custom notification functions copied from Gravity support forums.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sevendayweekend on "Does the gform_notification_email filter still work?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email#post-23594</link>
			<pubDate>Mon, 18 Apr 2011 15:27:55 +0000</pubDate>
			<dc:creator>sevendayweekend</dc:creator>
			<guid isPermaLink="false">23594@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;That worked! Is get_the_author_email defunct now?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>David Smith on "Does the gform_notification_email filter still work?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email#post-23572</link>
			<pubDate>Mon, 18 Apr 2011 12:47:13 +0000</pubDate>
			<dc:creator>David Smith</dc:creator>
			<guid isPermaLink="false">23572@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Give this code a shot:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://pastie.org/1807801&#34; rel=&#34;nofollow&#34;&#62;http://pastie.org/1807801&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sevendayweekend on "Does the gform_notification_email filter still work?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email#post-23550</link>
			<pubDate>Mon, 18 Apr 2011 11:37:02 +0000</pubDate>
			<dc:creator>sevendayweekend</dc:creator>
			<guid isPermaLink="false">23550@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;OK, one major difference, is that I originally had my code in single.php, I've now moved it to functions.php. Things have improved slightly, now the following code works:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_notification_email_3&#38;#39;, &#38;#39;route_notification&#38;#39;, 10, 2 );
function route_notification($email_to, $entry) {
	global $post;
	//$email_to = get_the_author_email();
	$email_to = &#38;#39;bob@example.com&#38;#39;;
	return $email_to;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Where as the following code fails completely:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_notification_email_3&#38;#39;, &#38;#39;route_notification&#38;#39;, 10, 2 );
function route_notification($email_to, $entry) {
	global $post;
	$email_to = get_the_author_email();
	//$email_to = &#38;#39;bob@example.com&#38;#39;;
	return $email_to;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;I don't think get_the_author_email() is working for some reason. What's the best way to see if it's being set properly? I'm not quite sure how to echo out variables from filters...
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Does the gform_notification_email filter still work?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email#post-23549</link>
			<pubDate>Mon, 18 Apr 2011 11:02:45 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">23549@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I'm unable to replicate this issue with v1.5.1.1, the filter is working as expected.  One thing I would suggest is to check your spam filter if you are doing tests and not receiving the email at a @gmail.com account, because gmail could have flagged it as spam because it didn't originate from gmail.&#60;/p&#62;
&#60;p&#62;Here are screenshots of what I did to try and replicate this, everything worked fine and as expected:&#60;/p&#62;
&#60;p&#62;Screenshot of code in place in functions.php:&#60;br /&#62;
&#60;a href=&#34;http://grab.by/9Uru&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/9Uru&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Screenshot of User Notification settings:&#60;br /&#62;
&#60;a href=&#34;http://grab.by/9Urz&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/9Urz&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Screenshot of form being submitted:&#60;br /&#62;
&#60;a href=&#34;http://grab.by/9Urx&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/9Urx&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Screenshot of notification being received at address specified by filter:&#60;br /&#62;
&#60;a href=&#34;http://grab.by/9UrB&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/9UrB&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Nobody else is reporting this issue which leads me to believe that your tests aren't working properly because they are getting caught in a spam filter, or there is other code on your site that is causing the problem.  The filter is working as expected.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>sevendayweekend on "Does the gform_notification_email filter still work?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email#post-23506</link>
			<pubDate>Sun, 17 Apr 2011 15:42:52 +0000</pubDate>
			<dc:creator>sevendayweekend</dc:creator>
			<guid isPermaLink="false">23506@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;I think the filter is boken in some way, because when I change it to this, it stills fails. I.e. it still reverts to admin email field and not &#60;a href=&#34;mailto:bob@example.com&#34;&#62;bob@example.com&#60;/a&#62;.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_notification_email_3&#38;#39;, &#38;#39;route_notification&#38;#39;, 10, 2 );
function route_notification($email_to, $entry) {
   //global $post;
   //$email_to = get_the_author_email();
   $email_to = &#38;#39;bob@example.com&#38;#39;;
   return $email_to;
}&#60;/code&#62;&#60;/pre&#62;</description>
		</item>
		<item>
			<title>sevendayweekend on "Does the gform_notification_email filter still work?"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/does-the-gform_notification_email#post-23489</link>
			<pubDate>Sun, 17 Apr 2011 08:37:01 +0000</pubDate>
			<dc:creator>sevendayweekend</dc:creator>
			<guid isPermaLink="false">23489@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;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 -&#38;gt; Email field instead of the post author as intended using the hook below.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter( &#38;#39;gform_notification_email_3&#38;#39;, &#38;#39;route_notification&#38;#39;, 10, 2 );
function route_notification($email_to, $entry) {
   global $post;
   $email_to = get_the_author_email();
   return $email_to;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Is the above code still the preferred method for changing notifications to the post author?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
