Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Nicolas Lemoine

    (@nlemoine)

    Hi vcb,

    Sure, you have two ways to achieve this.

    Looking at the help tab, you’ll see some variables available as tags such as:
    – %blog_url%
    – %home_url%
    – %blog_name%
    – %blog_description%
    – %admin_email%
    – %date%
    – %time%
    I think %home_url% should suit your needs.

    You can also add your own tag: https://wordpress.org/plugins/wp-better-emails/faq/

    add_filter('wpbe_tags', 'add_my_tags');
    function add_my_tags( $tags ) {
        $tags['site_url'] = get_site_url();
        return $tags;
    }

    Thread Starter vcb

    (@vcb)

    Hello hellonico,

    thanks for pointing this out.
    Somehow I’m not able to use the default tags you are mentioning.
    %blog_url% results within the email as src=”%blog_url%/wp-content/…”

    Is there something I’m missing out?
    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multisite dynamic PHP content within email template’ is closed to new replies.