first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
<?php
$email_content = <<<EMAIL
Hi {{NAME}},
Just one more step before we share the awesomeness from {{SITENAME}}!
Please confirm your subscription by clicking on <a href='{{SUBSCRIBE-LINK}}'>this link</a>
Thanks!
EMAIL;
return array(
'title' => __( 'Subscriber: Confirmation email', 'email-subscribers' ),
'description' => __( 'Send confirmation email when someone subscribes.', 'email-subscribers' ),
'type' => IG_ES_WORKFLOW_TYPE_USER,
'trigger_name'=> 'ig_es_user_unconfirmed',
'rules' => array(),
'meta' => array(
'when_to_run' => 'immediately',
),
'actions' => array(
array(
'action_name' => 'ig_es_send_email',
'ig-es-send-to' => '{{EMAIL}}',
'ig-es-email-subject' => __( 'Thanks!', 'email-subscribers' ),
'ig-es-email-content' => $email_content,
),
),
);

View File

@@ -0,0 +1,47 @@
<?php
if ( ES()->is_pro() ) {
$reason='Reason:{{subscriber.unsubscriber_reason}}';
} else {
$reason='';
}
$admin_email = ES_Common::get_admin_email();
if ( is_email( $admin_email ) ) {
$user = get_user_by( 'email', $admin_email );
$admin_name = '';
if ( $user instanceof WP_User ) {
$admin_name = ucfirst($user->display_name);
}
}
$email_content = <<<EMAIL
Hi {$admin_name},
A user has chosen to unsubscribe from our services. Please find the following details:
Name:{{subscriber.name}}
Email:{{subscriber.email}}
{$reason}
Thanks!
EMAIL;
return array(
'title' => __( 'Subscriber: Unsubscribe email', 'email-subscribers' ),
'description' => __( 'When a user unsubscribes,Send an unsubscribe notification email to the administrator', 'email-subscribers' ),
'type' => IG_ES_WORKFLOW_TYPE_USER,
'trigger_name'=> 'ig_es_user_unsubscribed',
'rules' => array(),
'meta' => array(
'when_to_run' => 'immediately',
),
'actions' => array(
array(
'action_name' => 'ig_es_send_email',
'ig-es-send-to' => $admin_email,
'ig-es-email-subject' => __( ' Important: User unsubscription notification', 'email-subscribers' ),
'ig-es-email-content' => $email_content,
),
),
);

View File

@@ -0,0 +1,32 @@
<?php
$email_content = <<<EMAIL
Hi {{NAME}},
Just wanted to send you a quick note...
Thank you for joining the awesome {{SITENAME}} tribe.
Only valuable emails from me, promise!
Thanks!
EMAIL;
return array(
'title' => __( 'Subscriber: Welcome email', 'email-subscribers' ),
'description' => __( 'Send welcome email when someone subscribes.', 'email-subscribers' ),
'type' => IG_ES_WORKFLOW_TYPE_USER,
'trigger_name'=> 'ig_es_user_subscribed',
'rules' => array(),
'meta' => array(
'when_to_run' => 'immediately',
),
'actions' => array(
array(
'action_name' => 'ig_es_send_email',
'ig-es-send-to' => '{{EMAIL}}',
'ig-es-email-subject' => __( 'Welcome to {{SITENAME}}', 'email-subscribers' ),
'ig-es-email-content' => $email_content,
),
),
);