MailPoet API on non-WordPress page
-
My website hosts a WordPress blog and other pages that are not managed by WordPress. My contact page is not a WordPress page, but I would like to include a “Add me to your mailing list” checkbox here. Adding the checkbox was no problem, but I’d like to use the MailPoet API to automatically add an email to a list if this checkbox is checked and a message is sent.
I think I can do everything I need with the API docs found here, but I can’t initialize MailPoet on a non-WordPress page (
class_exists(\MailPoet\API\API::class
) isFALSE
).The class does exist if executed on a page on my blog, but is there a way to make the MailPoet API available on a non-WordPress page?
The page I need help with: [log in to see the link]
- The topic ‘MailPoet API on non-WordPress page’ is closed to new replies.