Thanks @ashrafthewand,
Try adding the following PHP code snippet to your site:-
do_action(
'wpinv_email_header',
function() {
remove_all_actions( 'wpinv_email_invoice_details' );
remove_all_actions( 'wpinv_email_invoice_items' );
remove_all_actions( 'wpinv_email_billing_details' );
}
);
Thank you so much, Brian.
I tried to add it to the functions.php at a Divi child theme but it got be the errors below. Please advise.
Thank you in advance
Your PHP code changes were rolled back due to an error on line 1098 of file wp-includes/formatting.php. Please fix and try saving again.
Uncaught Error: Object of class Closure could not be converted to string in wp-includes/formatting.php:1098
Stack trace:
#0 wp-includes/formatting.php(4577): wp_check_invalid_utf8(Object(Closure))
#1 wp-content/plugins/invoicing/templates/emails/wpinv-email-header.php(40): esc_html(Object(Closure))
#2 wp-content/plugins/invoicing/includes/class-getpaid-template.php(168): include('/home/mahara1/m...')
#3 wp-content/plugins/invoicing/includes/class-getpaid-template.php(196): GetPaid_Template->load_template('emails/wpinv-em...', '/home/mahara1/m...', Array)
#4 wp-content/plugins/invoicing/includes/wpinv-template-functions.php(129): GetPaid_Template->display_template('emails/wpinv-em...', Array, '', '')
#5 wp-content/plugins/invoicing/includes/wpinv-email-functions.php(21): wpinv