How to send a copy of the gift template to other’s email id or to admin as well?

For sending the copy of the gift card template you can use the following code in functions.php in your theme.

 

add_action('wps_wgm_send_mail_to_others','wps_wgm_send_email',10,3);

function wps_wgm_send_email( $send_subject, $message, $attachments ) {

$headers = array( 'Content-Type: text/html; charset=UTF-8' );

wc_mail( $recipient_email_id, $send_subject, $message, $headers, $attachments );

}

Was this Helpful ?

CONTACT

Ready to transform how you market your business

Let's get connected for a free consultation