hellotrio
Forum Replies Created
-
Yes, I tried that. It adds the line-breaks but it also includes the html
<p>tags and any other html tags. Once those are added Discord doesn’t accept it and the notification isn’t sent.Hello Kuba,
Thank you for figuring that out for me, fixed it! Had to modify the code though because the example you had in the document wasn’t working for some reason.
add_filter( 'notification/trigger/wordpress/post/updated/statuses', function( $statuses ) { $statuses[] = 'future'; return $statuses; } );Thanks for the help!
Awesome, thank you that is what I thought. Finally got it to work. 🙂
Thank you for that, it was the date and time format in the settings. I don’t know why I didn’t think to check that. I had it set to a custom format for both the date and time instead of the standard default setups. When I saved it it’s now sending the date and time!
And I am using a multi-site, I should have mentioned that. Thanks for your help!
Hello, I didn’t try the email carrier option before but I just did and it produced the same result for the Post Updated trigger. No dates shown, blank. I used all of the merge tags you just mentioned before.
Here is what I had in the body of the email I have set up in the settings:
{post_modification_datetime} {post_creation_datetime} {post_publication_datetime}Here is the debugging information for the body after updating a post:
{post_publication_datetime}Which of course that matches what was sent in the email. So the
{post_creation_datetime}and{post_modification_datetime}are both blank in the email.I don’t know what would be causing the issue. I have another Slack notification plugin that works fine with dates so I don’t think it’s other plugins causing it. I was transitioning all of my notifications to your plugin because I prefer it but the dates are all that’s holding me back from deactivating the other plugin.