Created
October 27, 2017 09:29
-
-
Save kreamweb/f5b01920c795cb6e06f13b32164c6c26 to your computer and use it in GitHub Desktop.
from version 1.8.0
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 | |
| if ( class_exists( 'YITH_Request_Quote_Premium' ) ) { | |
| /* | |
| * If you want change old pdf name when create pdf | |
| */ | |
| add_action( 'create_pdf', 'ywraq_add_crypt_old_quote', 90 ); | |
| function ywraq_add_crypt_old_quote( $order_id ) { | |
| $order = wc_get_order( $order_id ); | |
| //change 'yes' in false if you don't want crypt file names | |
| yit_save_prop( $order, '_ywraq_pdf_crypt', 'yes' ); | |
| } | |
| } | |
| /* | |
| * If you want ever old pdf file name | |
| */ | |
| add_filter( 'ywraq_pdf_file_name_crypt', '__return_false'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment