PluginProbe
Timetics – Appointment Booking Calendar & Scheduling / 1.0.62
Timetics – Appointment Booking Calendar & Scheduling v1.0.62
1.0.62 1.0.63 1.0.61 1.0.60 1.0.59 1.0.58 1.0.57 1.0.56 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.15 1.0.16 1.0.17 1.0.18 1.0.19 1.0.2 1.0.20 1.0.21 1.0.22 All 64 releases
timetics / core / emails / re-invite-staff.php

re-invite-staff.php in Timetics – Appointment Booking Calendar & Scheduling 1.0.62, at core/emails/re-invite-staff.php

74 lines 1.6 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * New event email class
4 *
5 * @package Timetics
6 */
7 namespace Timetics\Core\Emails;
8
9 defined( 'ABSPATH' ) || exit;
10
11 use Timetics\Core\Staffs\Staff;
12
13 class Re_Invite_Staff extends Email {
14
15 /**
16 * Store staff object
17 *
18 * @var Object
19 */
20 public $staff;
21
22 /**
23 * Re Invite Staff Constructor
24 *
25 * @return void
26 */
27 public function __construct( $staff_id ) {
28 $this->staff = get_user_by( 'id', $staff_id );
29 parent::__construct();
30 }
31
32 /**
33 * Get email recipient
34 *
35 * @return string
36 */
37 public function get_recipient() {
38 return $this->staff->user_email;
39 }
40
41 /**
42 * Get new event email
43 *
44 * @return string
45 */
46 public function get_subject() {
47 return esc_html__('Re Invitation Subject','timetics');
48 }
49
50 /**
51 * Get email title
52 *
53 * @return string
54 */
55 public function get_title() {
56 return esc_html__('Re Invitation Staff','timetics');
57 }
58
59 /**
60 * Get template new event email
61 *
62 * @return string
63 */
64 public function get_template() {
65 $user_login = $this->staff->user_login;
66 $locale = get_user_locale($this->staff);
67 $reset_key = get_password_reset_key($this->staff);
68 $timetics_reset_url = site_url( "wp-login.php?action=rp&key={$reset_key}&login={$user_login}&wp_lang={$locale}" );
69
70 $timetics_reset_url = apply_filters( 'timetics_staff_password_reset_url', $timetics_reset_url, $reset_key, $user_login, $locale );
71 include_once TIMETICS_PLUGIN_DIR . '/templates/emails/new-staff.php';
72 }
73 }
74