Dinamiko / dk-pdf

WordPress to PDF made easy
https://wordpress.org/plugins/dk-pdf
28 stars 23 forks source link

Show footer on only on the last page #28

Closed mdahlke closed 8 years ago

mdahlke commented 8 years ago

It would be good to be able to show the footer on only the last page of the PDF.

mdahlke commented 8 years ago

Found out how.

http://wp.dinamiko.com/demos/dkpdf/doc/filters/

function custom_dkpdf_after_content() {
    $output = '<div style="margin-top:25px;width:100%;background:#CCC;">After content text</div>';
    return $output;
}
add_filter( 'dkpdf_after_content', 'custom_dkpdf_after_content' );