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
/** | |
* Modifying Headers | |
* | |
* Add to your theme functions.php | |
*/ | |
add_filter( 'pdf_template_table_headings','custom_pdf_template_table_headings' ); | |
function custom_pdf_template_table_headings( $headers ) { | |
$headers = '<table class="shop_table orderdetails" width="100%">' . | |
'<thead>' . | |
'<tr><th colspan="7" align="left"><h2>' . esc_html__('Order Details', PDFLANGUAGE) . '</h2></th></tr>' . |