• Resolved Demian

    (@demian85)


    Hello,

    Is it possible to add a new tag for the emails? In my instance I’d like to create an email notification when a new comment is posted, but these posts contains ratings which are not native wordpress. Is there a way to insert a new tag?

    With thanks,
    Demian

    • This topic was modified 6 years ago by Demian.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi Demian,

    yes, there is a way. Check the documentation to see how :).

    Thread Starter Demian

    (@demian85)

    Thank you, those are awesome documentations.

    Additional questions, which I couldn’t find;

    – I read the note “The snippet above must be called before action init 1000.”. If the code is put in functions.php is this automatically the case?

    – Do you support conditional triggers? i.e. if this happens, than send the email.

    – Are HTML-tags being catured in the email body?

    • This reply was modified 6 years ago by Demian.
    Plugin Author Kuba Mikita

    (@kubitomakita)

    Hey, let me answer your questions:

    – Yes, it’s safe to put it in that action, but if it works than no need

    – Obviously! Check the Conditionals add-on

    – Sorry, I don’t understand. If you mean if the HTML is being stripped than yes, while the tag is the StringTag. If it’s HtmlTag you can pass any HTML

    Thread Starter Demian

    (@demian85)

    Thank you, I noticed a typo. I was wondering if the email body accepts html-tags?

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Yes it does

    Thread Starter Demian

    (@demian85)

    Hello Kuba,

    I am happy to pay money for a plugin, but only if it works. Because the plugin is not firing any notifications for new added comments. I followed the docs, I enabled the Debug Log to see what’s going on, but it’s also not registering any logs. Do I have to purchase support if it’s not working? I can give you access if needed.

    Please advise.

    Demian

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Hi Demian,

    if you are using 3rd party plugin or comments are different type then the default trigger won’t work. What are you trying to do?

    Thread Starter Demian

    (@demian85)

    It all started with the fact that we did not receive email notifications when someone added a review/comment for a product. This was due to the fact that the author of the products appeared to be unknown/lost. So we added the following code in functions, to change the recipient:

    function new_comment_moderation_recipients( $emails, $comment_id ) { 
        return array( 'example@example.com' );
    }
    add_filter( 'comment_moderation_recipients', 'new_comment_moderation_recipients', 24, 2 );
    add_filter( 'comment_notification_recipients', 'new_comment_moderation_recipients', 24, 2 );

    This seems to work, and we received the native wordpress email notification. However, we want more than just the email, we also would like to receive the rating from the reviews/comments and some conditions. So we found your plugin.

    We do use a plugin for the reviews, the only extra things it does; it injects some extra fields like title and rating score. The rest is just the native wordpress comments, the evidence is the working native email notification from above.

    This is what I created: screenshot, but it’s not firing anything.

    Plugin Author Kuba Mikita

    (@kubitomakita)

    Yeah, it won’t work. Reviews are a different type of Comments.

    If this is WooCommerce you should use the WooCommerce extension which has this trigger.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Custom Meta/Merge Tag’ is closed to new replies.