How to use Messages template within new created Plugin
-
Messages template works well after design it. But how do I call the template when using a self created plugin.
Here the code I am using now. The result is raw text. I hope you can give me an advise how to include the Newsletter template into every wp_mail call as below:$to = $email_address; $headers = "MIME-Version: 1.0" . "\n"; $headers .= "Content-type:text/html;charset=UTF-8" . "\n"; $subject = 'Invitation from '.$from; $message = $invitation_source_text; $mail = wp_mail($to, $subject, $message, $headers);
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to use Messages template within new created Plugin’ is closed to new replies.