Skip to:
Content
Pages
Categories
Search
Top
Bottom

Default Admin name in Emails using Buddypress Group Email Plugin /


  • kelvinnm
    Participant

    @kelvinnm

    Heya!,

    I have been looking for a way to force the Buddypress Group Email Plugin to use a default name when our admins send out group emails.

    We have several admins and do not want their names to appear, rather just have ( Worldwide Community ) be the default name.

    From what I can see, this is something that cannot be changed through tokens in the backend or through some of the php code that I have found, like:

    Examples

    add_filter( ‘wp_mail_from_name’, ‘custom_wp_mail_from_name’ );
    function custom_wp_mail_from_name( $original_email_from ) {
    return ‘WordPress Email System’;
    }

    It is not necessary to call another method if you can use anonymous functions (PHP 5.3.0+):

    add_filter( ‘wp_mail_from_name’, function( $name ) {
    return ‘WordPress Email System’;
    });

    Any help will be much appreciated.

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Default Admin name in Emails using Buddypress Group Email Plugin /’ is closed to new replies.
Skip to toolbar