Reply To: Extra mail variable request.


Home Forums Front End PM PRO Extra mail variable request. Reply To: Extra mail variable request.

#20022
Shamim Hasan
Keymaster

add following code in your theme’s (child theme’s if any) functions.php

add_filter( 'fep_eb_email_legends', function( $legends, $mgs, $user_email ){
    $legends['cus_group'] = array(
        'description' => __('Mail group name', 'front-end-pm'),
        'where' => array( 'newmessage', 'reply' ), //where this tag will be used
        'replace_with' => ! empty( $mgs->mgs_id ) ? apply_filters( 'fep_is_group_message', '', $mgs->mgs_id ) : '',
    );
    return $legends;
}, 10, 3);

Now add {{cus_group}} in email