• Is it possible to customize the layout of the share email copy? For example, add a company logo, write a more branded invite to click the link to the page, etc. Thank you

Viewing 1 replies (of 1 total)
  • Hi rjohnson375,

    you can adjust the email body using the shared_counts_email_body filter.

    The following code will output the default body and append “some example text”.

    add_filter( 'shared_counts_email_body', 'new_shared_counts_email_body', 10, 5 );
    function new_shared_counts_email_body( $body, $post_id, $recipient, $from_name, $from_email ) {
        $body    = html_entity_decode( get_the_title( $post_id ), ENT_QUOTES ) . "\r\n";
        $body   .= get_permalink( $post_id ) . "\r\n";
        $body   .= 'some example text';
        return $body;
    }

    I hope that helps 😀

Viewing 1 replies (of 1 total)

The topic ‘Customize Email Share Copy’ is closed to new replies.