This topic has 3 replies, 3 voices, and was last updated 11 years by SQadmin.

  • Author
  • #6952
     gideon1210
    Participant

    How do you make the email subject a custom one rather than include the Site Title

    #6995
     SQadmin
    Keymaster

    Hi, Search for a wordpress plugin since it is related to basic wp functionality

    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
    #7473
     adam
    Participant

    I believe notification emails are generated from Buddypress here:
    bp-messages-notifications.php

    Can we change the subject line and body with a filter in functions.php?

    Thanks!

    #7554
     SQadmin
    Keymaster

    Have you tried this plugin? http://wordpress.org/plugins/welcome-pack/
    Also I think this is the buddypress function that has a filter to change from functions.php

    COPY CODE
    
    function bp_get_email_subject( $args = array() ) {
    
    	$r = wp_parse_args( $args, array(
    		'before'  => '[',
    		'after'   => ']',
    		'default' => __( 'Community', 'buddypress' ),
    		'text'    => ''
    	) );
    
    	$subject = $r['before'] . wp_specialchars_decode( bp_get_option( 'blogname', $r['default'] ), ENT_QUOTES ) . $r['after'] . ' ' . $r['text'];
    
    	return apply_filters( 'bp_get_email_subject', $subject, $r );
    }
    
    Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution
Viewing 4 posts - 1 through 4 (of 4 total)

The forum ‘Sweetdate – WordPress’ is closed to new topics and replies.

Log in with your credentials

Forgot your details?