Coding Agency for Web Development » WordPress Plugins » How to Easily Stop Gravity Forms Duplicate Admin Notifications?

How to Easily Stop Gravity Forms Duplicate Admin Notifications?

READING TIME: MIN

We’ve recently noticed Gravity Forms sends a duplicate email notification to the administrator when a new account is created via the form.

Problem Description

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.

Some of you might find this a little irritating to have two emails for the same things.

Solution

So this is how you can stop the plain text one:

1. Go to your wp-content/plugins/ folder and create a new file called gravity-stop.php (or whatever you like).

2. Put the following content on it.

<?php
/*
Plugin Name: New User Email GravityForms
Description: 
Author: Vipe Studio
 */

if ( ! function_exists( 'gf_new_user_notification' ) ) {
    function gf_new_user_notification( $user_id, $plaintext_pass = '', $notify = '' ) {
                return;
            }
        }
?>

 

3. Log in to your admin dashboard, go to Plugins, and activate it. Voila!

Let us know if this helped you in the comments section.

  Using Google Forms and Embedding in WordPress

Tags:

Vipe Team

Author Vipe Team

Our tireless team who creates high-quality WordPress-related content for you 24/7/365.