/**
  * This function sets up a custom email.
  *
  * @since 1.0.0
  * @return  void
  */
 function __construct()
 {
     // Configure Email
     $this->name = 'password';
     $this->title = __("Password Recovery Email", 'wpaam');
     $this->description = __("This is the email that is sent to the visitor upon password reset request.", 'wpaam');
     $this->subject = $this->subject();
     $this->message = $this->message();
     // do not delete!
     parent::__construct();
 }
Exemple #2
0
 /**
  * This function sets up a custom email.
  *
  * @since 1.0.0
  * @return  void
  */
 function __construct()
 {
     // Configure Email
     $this->name = 'register';
     $this->title = __("Registration Email", 'wpaam');
     $this->description = __("This is the email that is sent to the user upon successful registration.", 'wpaam');
     $this->subject = $this->subject();
     $this->message = $this->message();
     // do not delete!
     parent::__construct();
 }
Exemple #3
0
/**
 * Gets all the email templates that have been registerd. The list is extendable
 * and more templates can be added.
 *
 * @since 1.0.0
 * @return array $templates All the registered email templates
 */
function wpaam_get_email_templates()
{
    $templates = new WPAAM_Emails();
    return $templates->get_templates();
}