Last active
September 4, 2015 13:28
-
-
Save greenhornet79/3d76ffa2834707379e73 to your computer and use it in GitHub Desktop.
Add watermark to Issue to PDF pages
This file contains hidden or 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
<?php | |
add_action( 'issue_to_pdf_after_pdf_init', 'my_func_show_watermark', 10 ); | |
function my_func_show_watermark( $mpdf ) { | |
$mpdf->SetWatermarkText('DRAFT'); | |
$mpdf->showWatermarkText = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment