Add text in the footer of each message sent.


Home Forums Front End PM PRO Add text in the footer of each message sent.

This topic is: Not Resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #31447
    c-alle
    Participant

    Hi, I would like add a text to the footer of each message and reply sent (basically a signature).

    Message to add:

    <p style=’font-size:11px’><i class=’fa fa-eye’ style=’color:gold’></i> This message was sent via: </font> <font color=’darkgreen’><b>MYSITE.com</b>.</font></p>

    It’s possible? Thank you for your availability and professionalism.

    #31450
    c-alle
    Participant

    If possible I would like to add the code (which I asked for above) to the excellent function that you had already done to me.

    add_filter( 'fep_filter_message_before_send', function( $message ) {
    if ( get_user_meta( get_current_user_id(), 'privacytel', true ) != 'No') {
    // The @ symbol must be surrounded by character on both sides
    $message['message_content'] = preg_replace( '/[^@\s]*@[^@\s]*\.[^@\s]*/', '[EMAILNASCOSTA]', $message['message_content'] ); # for emails

    // Take any string that contains only numbers, spaces and dashes,
    // Can optionally have a + before it.
    $message['message_content'] = preg_replace( '/\+?[0-9\-]{5,}/', '[TELEFONONASCOSTO]', $message['message_content'] ); # for phone numbers
    }
    return $message;
    });

    Thanks.

    #31486
    shamim
    Keymaster

    Add

    $message['message_content'] .= "<p style=’font-size:11px’><i class=’fa fa-eye’ style=’color:gold’></i> This message was sent via: </font> <font color=’darkgreen’><b>MYSITE.com</b>.</font></p>";
    

    after phone numbers.

Viewing 3 posts - 1 through 3 (of 3 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.