loading

It is a long established fact that a reader will be distracted.

Categories
Contacts
  1. Undefined variable $ID: You’re using $ID variable in get_permalink() and get_edit_post_link() functions, but it’s not defined anywhere in your code. You should replace it with $post->ID.n
  2. Incorrect function name: You’re using wp_mail_to() instead of wp_mail() to send the email.
  3. Overwriting variables: You’re overwriting the $message variable. Instead, you should concatenate the message strings.
  4. Headers issue: You’ve initialized $headers as an empty array, but it should contain the actual headers for the email, such as From, Content-Type, etc.

1 Comment

Write a Reply or Comment

Your email address will not be published. Required fields are marked *

gymster-subscribe-image
Sign Up to Get Latest Updates
It is a long established fact that a reader will be distracted by the