Created
December 1, 2018 12:31
-
-
Save wpweb101/2a1eecdbae6e304764830c9165afa1e3 to your computer and use it in GitHub Desktop.
Pdf Voucher code to set custom background image height and width for landscape view
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 | |
| // Code to set custom width for the pdf background image | |
| function woo_vou_set_custom_bg_width( $height, $width){ | |
| return $width; | |
| } | |
| add_filter( 'woo_vou_pdf_land_bg_img_width', 'woo_vou_set_custom_bg_width', 10,2); | |
| // Code to set custom height for the pdf background image | |
| function woo_vou_set_custom_bg_height( $width, $height){ | |
| return $height; | |
| } | |
| add_filter( 'woo_vou_pdf_land_bg_img_height', 'woo_vou_set_custom_bg_height', 10,2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment