MySLP_Email_Settings
in package
Class MySLP_Email_Settings
Table of Contents
Properties
- $myslp_email_options : mixed
Methods
- __construct() : mixed
- Class constructor
- admin_script() : mixed
- Script and Styling enqueue
- filter_email_type() : mixed
- Send receipt email function
- menu() : mixed
- Admin menu
- menu_page_content() : mixed
- Menu page settings
- new_account_notification() : mixed
- Send new account notification.
- send_about_to_be_expired_action() : mixed
- send_expired_action() : mixed
- Send expired account email function
- send_receipt_action() : WP_Error|null
- Send receipt email function Can be used for do_action()
- send_welcome_action() : mixed
- Send welcome email function
- add_ending_html() : string
- Add style to email.
- add_starting_html() : string
- Add style to email.
- add_style() : string
- Add style to email.
- configure_email_options() : mixed
- Configure the myslp_email_options setting.
- error() : WP_Error
- Return consistent errors.
- get_user() : false|WP_Error|WP_User
- Get a user or an error.
- ok_to_spam() : bool
- Return true if OK to "spam" (send email from our dev and beta boxes for testing)
- replace_placeholders() : mixed
- Replace email placeholders.
- send_the_email() : mixed
- Send The Email
Properties
$myslp_email_options
private
mixed
$myslp_email_options
Methods
__construct()
Class constructor
public
__construct() : mixed
admin_script()
Script and Styling enqueue
public
admin_script(mixed $hook) : mixed
Parameters
- $hook : mixed
filter_email_type()
Send receipt email function
public
filter_email_type() : mixed
menu()
Admin menu
public
menu() : mixed
Tags
menu_page_content()
Menu page settings
public
menu_page_content() : mixed
Tags
new_account_notification()
Send new account notification.
public
new_account_notification(mixed $email) : mixed
Parameters
- $email : mixed
send_about_to_be_expired_action()
public
send_about_to_be_expired_action(mixed $user_id, mixed $myslp_reminder_emails_options) : mixed
Parameters
- $user_id : mixed
- $myslp_reminder_emails_options : mixed
send_expired_action()
Send expired account email function
public
send_expired_action(mixed $user_id) : mixed
Parameters
- $user_id : mixed
send_receipt_action()
Send receipt email function Can be used for do_action()
public
send_receipt_action(string $email) : WP_Error|null
Parameters
- $email : string
Return values
WP_Error|nullsend_welcome_action()
Send welcome email function
public
send_welcome_action(deprecated $site_url, deprecated $username, deprecated $password, string $email) : mixed
Parameters
- $site_url : deprecated
- $username : deprecated
- $password : deprecated
- $email : string
add_ending_html()
Add style to email.
private
add_ending_html() : string
Return values
stringadd_starting_html()
Add style to email.
private
add_starting_html() : string
Return values
stringadd_style()
Add style to email.
private
add_style() : string
Return values
stringconfigure_email_options()
Configure the myslp_email_options setting.
private
configure_email_options() : mixed
error()
Return consistent errors.
private
error(mixed $slug) : WP_Error
Parameters
- $slug : mixed
Return values
WP_Errorget_user()
Get a user or an error.
private
get_user(int $user_id) : false|WP_Error|WP_User
Parameters
- $user_id : int
Return values
false|WP_Error|WP_Userok_to_spam()
Return true if OK to "spam" (send email from our dev and beta boxes for testing)
private
ok_to_spam(mixed $email, mixed $spam_setting) : bool
Parameters
- $email : mixed
- $spam_setting : mixed
Return values
boolreplace_placeholders()
Replace email placeholders.
private
replace_placeholders(mixed $message) : mixed
Parameters
- $message : mixed
send_the_email()
Send The Email
private
send_the_email(mixed $email, mixed $subject, mixed $body) : mixed
Parameters
- $email : mixed
- $subject : mixed
- $body : mixed