portugal_ctt_tracking_email_info
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'portugal_ctt_tracking_email_info', 'my_portugal_ctt_tracking_email_info', 10, 4 ); | |
function my_portugal_ctt_tracking_email_info( $html, $order_object, $sent_to_admin, $plain_text ) { | |
//Do whatever you want with the HTML | |
//You can get the tracking code with $order_object->get_meta( '_ctt_tracking_code' ) | |
return $html; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment