Tagged Questions
0
votes
1answer
48 views
Invalidate username if it contains @ symbol
I would like to let the user login either using username or email.
The only way to find the email is by detecting @ symbol using strpos.
However WordPress allow @ symbol in username too.
Can ...
2
votes
1answer
75 views
Sanitising post content for use in an email
I'm sending the content of a custom post type in a plaintext email (it's to send competition entries to a panel of judges), so I need to make sure that $post->post_content is correctly sanitised ...