• FDD

    (@freedopedownloads)


    In the “[Site Name] Password Changed” notification email (not the reset), the “from” name is WordPress. The “from” email is correct, and this error doesn’t appear in any other other emails.

    Is there a way to fix this without editing the php file?

    I am running Woocommerce and Learndash but I doubt this has anything to do with it.

    Thank you!

    • This topic was modified 3 years, 1 month ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
    • This topic was modified 3 years, 1 month ago by FDD.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • WordPress is the default from name ( it is likely that other emails are overriding this )

    If you are happy adding PHP snippets is it easy to override the default, have a look at the examples at the end of this page https://developer.www.ads-software.com/reference/hooks/wp_mail_from/

    Thread Starter FDD

    (@freedopedownloads)

    Yeahhhh that’s what I was afraid of.
    Ok so from this example

    add_filter( ‘wp_mail_from_name’, ‘new_mail_from_name’ );
    function new_mail_from_name( $old ) {
    return get_option( ‘blogname’ );
    }

    Does this syntax make sense?

    add_filter( ‘WordPress’, ‘ABM Equipment’ );
    function new_mail_from_name( $old ) {
    return get_option( ‘ABMXRay’ );
    }

    And am I supposed to add “<?php”?

    Thanks and my apologies; wanted to avoid this because I’ve never done it hah.
    Thanks again

    If you have never done it – then probaly safest if you use as PHP snippet plugin

    see https://en-gb.www.ads-software.com/plugins/search/php+snippet/

    Otherwise you have a bit of learning to to, including ensuring you have a backed up site etc as you can easily break it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing “From” Name In Password Reset Notification’ is closed to new replies.