Hello,
Thank you for your response and for wp-admin access.
Without FTP access, we will not make changes to files on your site.
We recommend that you clarify with the plugin you are using for tracking, to use a code similar to the one provided:
add_action('woocommerce_email_order_meta', function($order, $sent_to_admin = false, $plain_text = false, $email = '') {
if ( function_exists( 'wc_st_add_tracking_number' ) ) {
wc_st_add_tracking_number( $order_id, $tracking_number, $provider, $date_shipped, $custom_url );
}
}, 10, 3);
However, do not add this exact code as it will certainly cause a fatal error. Instead, use the code you intended to use with the hook ‘woocommerce_email_order_meta’. Additionally, this hook should be added to the content builder template (https://availoptics.com/wp-content/uploads/2023/10/Screenshot-2023-10-13-at-12.52.49.png). It is important for you to find out and determine how to take all parameters into their function, namely $tracking_number, $provider, $date_shipped, $custom_url.
Kind Regards,
8theme team