Class Wcap_Send_Manual_Email
This class is used to start Initiate Recovery.
Author: Tyche Softwares
Since: 4.2
Located at includes/classes/class_wcap_send_manual_email.php
Methods summary
public static
|
#
wcap_create_and_send_manual_email( )
It will replace the merge tags and send the email to customer(s). |
public static
String
|
#
wcap_get_customers_email( integer $wcap_user_id, String $wcap_user_type )
This function will return the email address of the customer for the cart. As we have given the choice to the admin that he can choose who will receive the email template. |
public static
Int|String
|
#
wcap_get_customers_phone( integer $wcap_user_id, String $wcap_user_type )
This function will return the phone number of the customer for the cart. |
public static
String
|
#
wcap_validate_email_format( String $wcap_email_address )
As we have given the choice to admin, that he can send email template to any one. So we need to check each email address is in correct format or not. If any one of the email address is correct then send the email. We are having the multiple email address in the comma seprated so we need to check validate email format. |
public static
String
|
#
wp_coupon_code( integer $discount_amt, string $get_discount_type, string $get_expiry_date, string $coupon_post_meta )
If the email tempalte will have the merge tag {{coupon.code}} and parent coupon code then our plugin will generate the coupon code. This function is used for getting the functionality of parent coupon code for the unique generated coupon code. Also, it will update coupon details in post_meta table. |
public static
array
|
#
wp_random_string( )
It is used for generating random coupon code which will send in the abandoned cart reminder email. |