Newsletter dedicated page

An address of a WordPress page (eg. you manually created for subscription and messages. The page must have in its body only the short code [newsletter] (as is).

To enter it, follow Newsletter / Subscription Steps / General.

Styling the subscription mails

  1. Copy this file wp-content/plugins/newsletter/subscription/email-alternative.php
  2. Paste it in wp-content/plugins/extensions/newsletter/subscription/
  3. Rename it to email.php
  4. Copy the html content from wp-content/plugins/newsletter/subscription/email.php
  5. Paste it into your newly created file.
  6. Make the desired style adjustments.

PHP functions

How to subscribe a user

$user_ID = get_current_user_id();

How to confirm / unsubscribe a user

$current_user = wp_get_current_user();
$current_user_email = $current_user->user_email;
global $newsletter;
$newsletter->set_user_status($current_user_email, 'C'); // confirm
$newsletter->set_user_status($current_user_email, 'U'); // unsubscribe



Post A Comment

Anti-Spam Quiz: