Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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