Jake Vanderwerf
2026-02-11 a46467b9149ef5435124c3cfab5737332293afa5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?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>&emsp; —  ♡ the edmonton.ink crew</p>',
        'footer'    => [
            '<p>&copy; ' . 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);