• Resolved brannon125

    (@brannon125)


    Hi, Is it possible to add a filter to the function modify_signup_user_notification_message in the class-forminator-cform-user-signups.php file? I would like to modify the email template or at least the text of the email that is sent to users prompting them to activate their user account. The current message says “To activate your user, please click the following link”

    Many Thanks for any assistance you can provide;)

    Lee Brannon

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @brannon125

    I hope you are doing well.

    The string is translatable, so you can use Loco translate or PO/MO file to modify the text but if you want to go with hook approach can you please try?

    <?php
    
    add_filter( 'wpmu_signup_user_notification_email', function($message, $user, $user_email, $key){
    
        $message = __( "Custom to activate your user, please click the following link:\n\n%s\n", 'forminator' );
    
        $url = add_query_arg(
            array(
                'page' => 'account_activation',
                'key'  => $key,
            ),
            home_url( '/' )
        );
    
        return sprintf( $message, esc_url_raw( $url ) );
    
    }, 20, 4 );

    https://monosnap.com/file/W4GfHRS5qkeBW6UF6RzTSfWY6iw7wz

    Best Regards
    Patrick Freitas

    Plugin Support Amin – WPMU DEV Support

    (@wpmudev-support2)

    Hello @brannon125 ,

    We haven’t heard from you for almost 2 weeks now, so it looks like the proposed workaround worked for you.

    Feel free to re-open this ticket if needed.

    Kind regards
    Kasia

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding filter to modify new user notification email’ is closed to new replies.