Last active
September 28, 2015 13:06
-
-
Save wpweb101/c466ebe4fd10393d2ed1 to your computer and use it in GitHub Desktop.
woocommerce pdf voucher - Add Custom Pdf size
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 | |
| // For add custom PDF | |
| function woo_vou_add_custom_pdf_sizes( $pdf_sizes = array() ) { | |
| $pdf_sizes = array_merge( $pdf_sizes, array( | |
| 'A_Custom' => array( | |
| 'width' => 500, | |
| 'height' => 500, | |
| 'fontsize' => 50 | |
| ) | |
| ) | |
| ); | |
| return $pdf_sizes; | |
| } | |
| add_filter( 'woo_vou_get_pdf_sizes', 'woo_vou_add_custom_pdf_sizes' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment