0

In a plugin I need to send an email to confirm a member registration. Inside this email HTML Content, there is a link with two parameters like this :

site_url() . "/user-profile/?activate=true&token=" . $token

My problem is the char "&" which prevent to send the email.

I tested the function esc_url() without success.

What is the WP solution ?

  • You could try & - if that doesn't work you will probably need to provide more of your code as it's not clear why an ampersand would cause issues with the rest of your code. – WebElaine Sep 24 '18 at 14:26
  • "My problem is the char "&" which prevent to send the email" > What do you mean by that, post any error messages in your question, pls. – Michael Sep 24 '18 at 18:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.