• Hi all!

    First of all: Great plugin!!

    I have been struggling for 5 entire days without findg out why is not working.

    The issue is simple: I want the TML Custom Emails to be called so I implemented the following code in my child-theme FUNCTIONS.PHP:

    add_action( ‘wp_new_user_notifications’,’wp_new_user_notification_tml’, 10, 2 );

    function wp_new_user_notification_tml($user_id, $notify ){
    do_action( ‘tml_new_user_notification’, $user, null );
    }

    As a result, the defaul emails of WordPress are being sent whenever a new user is registered, so I guess this hook is not working.

    I have setde DEBUG settings to true, and the log doesn’t mention any problem on it.

    Can anyone help me to find out what’s the problem?

    thanks in advance!
    Angel.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    ALl you have to do is enable TML’s Custom E-mails module.

    Thread Starter chilidogs

    (@chilidogs)

    Actually I have enabled it, and it doesn’t work =).
    The thing is that maybe another plugin is calling the default WordPress mailing motor, so that is why asked if this code would be correct to catch it a redirect it to TML. Would that be correct or there is something missing/incorrect?:

    add_action( ‘wp_new_user_notifications’,’wp_new_user_notification_tml’, 10, 2 );

    function wp_new_user_notification_tml($user_id, $notify ){
    do_action( ‘tml_new_user_notification’, $user, null );
    }

    Thanks again!
    Angel.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    No. What plugin do you think may be interfering?

    Thread Starter chilidogs

    (@chilidogs)

    The one I think is messing around is the ‘Erident Custom Login’, that actually let you customize aspect of the login screen. I guess that if the default WordPress email are still being sent is because there is a call to the wordpress email motor that I am not able to catch with that hook? Do you have any idea/suggestion?

    Thanks for your time!
    Angel.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    I don’t understand, if you’re using Theme My Login, why do you need that plugin?

    Thread Starter chilidogs

    (@chilidogs)

    Hi Jeff!,

    I was using it because it let you configure easily the layout / background / colors and fields of the login / lost password etc. screens …

    Would you say that the code of the hook is well formed and should catch the wordpress emailing and call the TML one? :

    add_action( ‘wp_new_user_notifications’,’wp_new_user_notification_tml’, 10, 2 );

    function wp_new_user_notification_tml($user_id, $notify ){
    do_action( ‘tml_new_user_notification’, $user, null );
    }

    Thanks a lot for your patience and help!
    Angel.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    I was using it because it let you configure easily the layout / background / colors and fields of the login / lost password etc. screens …

    But that’s what Theme My Login does… I don’t get it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom E-mail not called’ is closed to new replies.