{"id":8440,"date":"2020-01-29T14:06:39","date_gmt":"2020-01-29T12:06:39","guid":{"rendered":"https:\/\/vipestudio.com\/?p=8440"},"modified":"2021-01-04T17:15:18","modified_gmt":"2021-01-04T15:15:18","slug":"how-to-easily-stop-gravity-forms-duplicate-admin-notifications","status":"publish","type":"post","link":"https:\/\/vipestudio.com\/en\/how-to-easily-stop-gravity-forms-duplicate-admin-notifications\/","title":{"rendered":"How to Easily Stop Gravity Forms Duplicate Admin Notifications?"},"content":{"rendered":"<p style=\"text-align: left;\">We&#8217;ve recently noticed Gravity Forms sends a duplicate email notification to the administrator when a new account is created via the form.<\/p>\n<h3>Problem Description<\/h3>\n<p style=\"text-align: left;\">The first email is a well-formatted one, while the second is plain text and looks exactly like the default new user notification sent by WordPress.<\/p>\n<p style=\"text-align: left;\">Some of you might find this a little irritating to have two emails for the same things.<\/p>\n<h3>Solution<\/h3>\n<p style=\"text-align: left;\">So this is how you can stop the plain text one:<\/p>\n<p style=\"text-align: left;\">1. Go to your <strong>wp-content\/plugins\/<\/strong> folder and create a new file called <strong>gravity-stop.php<\/strong> (or whatever you like).<\/p>\n<p style=\"text-align: left;\">2. Put the following content on it.<\/p>\n<p style=\"text-align: left;\"><!-- HTML generated using hilite.me --><\/p>\n<div style=\"background: #ffffff; overflow: auto; width: auto; border-style: solid; border-color: gray; border-image: initial; border-width: 0.1em 0.1em 0.1em 0.8em; padding: 0.2em 0.6em; text-align: left;\">\n<pre style=\"margin: 0; line-height: 125%;\"><span style=\"color: #557799;\">&lt;?php<\/span>\r\n<span style=\"color: #888888;\">\/*<\/span>\r\n<span style=\"color: #888888;\">Plugin Name: New User Email GravityForms<\/span>\r\n<span style=\"color: #888888;\">Description: <\/span>\r\n<span style=\"color: #888888;\">Author: Vipe Studio<\/span>\r\n<span style=\"color: #888888;\"> *\/<\/span>\r\n\r\n<span style=\"color: #008800; font-weight: bold;\">if<\/span> ( <span style=\"color: #333333;\">!<\/span> <span style=\"color: #007020;\">function_exists<\/span>( <span style=\"background-color: #fff0f0;\">'gf_new_user_notification'<\/span> ) ) {\r\n    <span style=\"color: #008800; font-weight: bold;\">function<\/span> <span style=\"color: #0066bb; font-weight: bold;\">gf_new_user_notification<\/span>( <span style=\"color: #996633;\">$user_id<\/span>, <span style=\"color: #996633;\">$plaintext_pass<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"background-color: #fff0f0;\">''<\/span>, <span style=\"color: #996633;\">$notify<\/span> <span style=\"color: #333333;\">=<\/span> <span style=\"background-color: #fff0f0;\">''<\/span> ) {\r\n                <span style=\"color: #008800; font-weight: bold;\">return<\/span>;\r\n            }\r\n        }\r\n<span style=\"color: #557799;\">?&gt;<\/span>\r\n<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: left;\">3. Log in to your admin dashboard, go to Plugins, and activate it. Voila!<\/p>\n<p style=\"text-align: left;\">Let us know if this helped you in the comments section.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ve recently noticed Gravity Forms sends a duplicate email notification [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":10603,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[125],"tags":[131,130],"class_list":["post-8440","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress-plugins","tag-function","tag-gravityforms"],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/posts\/8440","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/comments?post=8440"}],"version-history":[{"count":0,"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/posts\/8440\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/media\/10603"}],"wp:attachment":[{"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/media?parent=8440"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/categories?post=8440"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vipestudio.com\/en\/wp-json\/wp\/v2\/tags?post=8440"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}