I’ve found the solution to my problem after playing around with the hooks. The code is as below
add_action( 'wcdn_after_page', 'invoice_footer', 10, 1 );
function invoice_footer(){
$template = wcdn_get_template_type();
if ($template == 'invoice'){
echo '';}
elseif ($template == 'delivery-note'){
echo ''; }
elseif ($template == 'receipt'){
echo '';}
}
-
This reply was modified 3 years, 5 months ago by anewphpcoder.