Home Forums Plugin Support WP User Frontend (Free Version) Register not working with Plugin

This topic is: resolved

This topic contains 1 reply, has 1 voice, and was last updated by  Denis 5 years, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #7934

    Denis
    Participant
    Post count: 165

    Hi,
    I use WPUF pro to register new users. Now I created a plugin to change my email details.

    <?php
    /*
    Plugin Name: My Awesome Email Plugin
    Plugin URI: http://localhero.de
    Description: Email settings
    Version: 1.0
    Author: Denis Hoffmann
    Author URI: http://localhero.de
    */
    
    add_filter ("wp_mail_content_type", "my_awesome_mail_content_type");
    function my_awesome_mail_content_type() {
    	return "text/html";
    }
    	
    add_filter ("wp_mail_from", "my_awesome_mail_from");
    function my_awesome_mail_from() {
    	return "info@mysite.de";
    }
    	
    add_filter ("wp_mail_from_name", "my_awesome_mail_from_name");
    function my_awesome_email_from_name() {
    	return "mysite.de";
    }
    
    ?>

    When I click on “register button” the page loads and loads and loads and nothing happens. when I hit the RELOAD button, the new user is added.

    Whats wrong with my plugin?
    Cheers,
    Denis

    #7935

    Denis
    Participant
    Post count: 165

    I changed it this way and it works…

    /* WordPress Email von Plain in HTML ändern */
    function lh_mail_content_type()
    	{
    	return "text/html";
    	}
    add_filter ("wp_mail_content_type", "lh_mail_content_type");
    
    /* Email Adresse von WordPress ändern */
    function lh_mail_from_address() // $email_address
    	{
    	return "info@localhero.de";
    	}
    add_filter( "wp_mail_from", "lh_mail_from_address" );
    
    /* Absendername von WordPress ändern */
    function lh_mail_from_name() // $email_from
    	{
    	return "Redaktion - Localhero";
    	}
    add_filter( "wp_mail_from_name", "lh_mail_from_name" );
Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Register not working with Plugin’ is closed to new replies.