• Resolved xtensions

    (@williamews)


    Hi. Thanks for the support!

    Shortcodes are not working in Transactional Emails. Any suggestions?

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author bnfw

    (@voltronik)

    Hi @williamews,
    Thanks for your message.

    When you say ‘shortcodes are not working in transactional emails’s, can you clarify what transaction notification(s) you’re using and what shortcodes you’re trying to use?

    Are some not working or are all of the shortcodes you’re using not working?

    Thanks,
    Jack

    Thread Starter xtensions

    (@williamews)

    Hi. Thanks for the reply.

    For example I’m using the shortcode “[global_user_firstname]” in the “New User Registration”. When the notification email is received, it does not show the username, but the shortcode [global_user_firstname] itself.

    Thanks!

    Plugin Author bnfw

    (@voltronik)

    Hi @williamews,
    I’ve just tested this and can confirm that it’s working as expected for me – the [global_user_firstname] shortcode is outputting correctly.

    Can you confirm that you’re using the latest version of BNFW (1.6.5) and WordPress (4.8)?

    Additionally, do you have any other plugins that may interfere with the WordPress Logon or add membership functionality?

    Thanks,
    Jack

    Plugin Author bnfw

    (@voltronik)

    Closing due to inactivity. If you need further help with this, please feel free to re-open this thread.

    Hello Team
    Great work,

    Awesome plugin, but after update 1.6.6, shortcode stopped working on publish post notification, but all shortcode working fine at pending review mail. i used latest version of WordPress. Mail are working fine but shortcode messed up on publish post.Please help me out.

    I hope fast reply as you can. Thank you for all your support and efforts.

    I appreciate.
    Thank you!

    • This reply was modified 7 years, 8 months ago by kannu.
    Plugin Author bnfw

    (@voltronik)

    Hi @kannu,
    Please can you start your own thread about this and i’ll get back to you there.

    Thanks,
    Jack

    i have find solution my self and its work fine, thanks you for support.

    function authorNotification($post_id) {
    	$post = get_post($post_id);
    	$post_type = $post->post_type;
        if( ($_POST['post_status'] == 'publish' ) && ( $_POST['original_post_status'] != 'publish') && $post_type == "portfolio") {
    		
    		$title = $post->post_title;
    		$author = get_userdata($post->post_author);
    		$first_name = $author->first_name;
    		$last_name = $author->last_name;
    
    		   $message = "Hi ".$first_name.'  '.$last_name."
    		Your episode ".$post->post_title." has been approved by admin and is now published!. 
    		See it here:: ".get_permalink( $post_id ).".
    
    				wp_mail($author->user_email, "An online document has been made or edited for you.", $message);
        }
    }
    add_action( 'draft_to_publish','authorNotification');
    add_action( 'future_to_publish' , 'authorNotification');
    add_action( 'pending_to_publish', 'authorNotification');
    add_action( 'private_to_publish', 'authorNotification');
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcodes Not Working In Transactional Emails’ is closed to new replies.