<?php
|
$defaults = [
|
'colours' => [
|
'action-0' => '#ff0080',
|
'action-50' => '#ff2492',
|
'action-100' => '#ff47a4',
|
'action-200' => '#ff6bb5',
|
'secondary-0' => '#D69121',
|
'secondary-50' => '#ffc421',
|
'secondary-100' => '#ffcd44',
|
'secondary-200' => '#ffd768',
|
'light' => '#efefef',
|
'light-50' => '#e2e2e2',
|
'light-100' => '#d5d5d5',
|
'light-200' => '#c9c9c9',
|
'dark' => '#151515',
|
'dark-50' => '#222222',
|
'dark-100' => '#2e2e2e',
|
'dark-200' => '#3b3b3b',
|
'action-contrast'=> '',
|
'secondary-contrast'=> '',
|
],
|
'content' => [
|
'title' => get_bloginfo('name'),
|
'subjectPrefix' => '['.get_bloginfo('name').']',
|
'signature' => '<p>  — ♡ the edmonton.ink crew</p>',
|
'footer' => [
|
'<p>© ' . date('Y') . ' edmonton.ink — Your tattoo scene on your screen.</p>',
|
'<p><a href="' . get_home_url() . '" class="text-link">edmonton.ink</a></p>'
|
]
|
],
|
'types' => [
|
'newUser' => [
|
'subject' => 'Welcome to Legacy! Finish creating your account.',
|
'showPrefix' => true,
|
],
|
'resetPass' => [
|
'subject' => 'Reset your Password'
|
],
|
'emailChange' => [
|
'subject' => 'Successfully Changed Email'
|
],
|
'passwordChange' => [
|
'subject' => 'Successfully Changed Password',
|
]
|
]
|
];
|
|
|
/*
|
* EXTEND WITH:
|
* {string} $message: email content
|
* {WP_User} $user: user
|
* apply_filters
|
* jvbNewUserEmail -> New user email content
|
* add_filter('jvbNewUserEmail', 'customFunction', 10, 2);
|
* jvbNewUserAdminEmail -> New User notification for admin
|
* add_filter('jvbNewUserAdminEmail', 'customFunction', 10, 2);
|
* jvbPasswordResetEmail -> Password Reset Email
|
* {string} $message: email content
|
* {string} $key
|
* {string} $user_login,
|
* {WP_User} $user_data
|
* add_filter('jvbPasswordResetEmail', 'customFunction', 10, 4);
|
* jvbEmailChangeRequestEmail -> Request for email change
|
* {string} $message
|
* {array} $oldUser
|
* {array} newUser
|
* add_filter('jvbEmailChangeRequestEmail', 'customFunction', 10, 3);
|
* jvbEmailChangedEmail -> Notification that email successfully changed
|
* {string} $message
|
* {string} $confirm_url
|
add_filter('jvbEmailChangedEmail', 'customFunction', 10, 2);
|
* jvbPasswordChangeEmail -> Request for password change
|
* {string} $message
|
* {array} $oldUser
|
* {array} $newUser
|
* add_filter('jvbPasswordChangeEmail', 'customFunction', 10, 3);
|
* jvbPersonalDataExport -> Request for User Data
|
* {string} $message
|
* {string} $request_type
|
* {string} $confirmation_url
|
* {array} $emailData, from the original filter
|
* add_filter('jvbPersonalDataExport', 'customFunction', 10, 4);
|
* jvbPersonalDataExported -> Notification that data is ready for download
|
* {string} $message
|
* {string} $downloadURL
|
* {string} $expiresAt
|
* {array} $emailData, from the original filter
|
* add_filter('jvbPersonalDataExported', 'customFunction', 10, );
|
*
|
*/
|
|
|
$jvbEmail = apply_filters('jvb_email', $defaults);
|
define('JVB_EMAIL', $jvbEmail);
|