The content of the email is replaced by the content of the home page

Hello, I have problems with email.

Myproblem : the content of the email sent when “booking_confirm_user” and “booking_confirm_vendor” is replaced by the content of the home page ; previously, it was the content of the last post that was sent (I have erased all posts).
If I delete my custom message content, the default message works fine…

My config

  • Custom html email templates, sent with “WP mail smtp” via Google.
  • Tokens used : %user.first_name% %listing_title% %listing.categories% %booking_dates% %a_custom_attribute_token% %listing.price% %booking.url_visio%
  • Permalinks are set up to %Category% % Postname%

I have seen a similar problem here User registration email is replaced with the blog post

Could you help me please ?


Please disable third-party plugins and customizations (if there are any) and check if this issue persists. If you use a caching plugin, make sure that caching is disabled for logged-in users.

ok, thanks andrii, I give it a try and I’ll let you know

ok, after investigations, it seems the bug is due to a function of our current theme (hello elementor).
The guilty function is named “hello_elementor_scripts_styles”.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.