Created
December 6, 2016 14:05
-
-
Save wpweb101/604a7e62bfd20d43b9c6c243d58138bb to your computer and use it in GitHub Desktop.
WooCommerce Pdf Vouchers - Add custom style to data appearing through QRCode scanned URL
This file contains 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 style to QRCode scanned url data | |
*/ | |
function woo_vou_allow_admin_to_bcc_func ( $style ) { | |
// Style to remove Email field | |
return '<style> | |
.woo_vou_product_details .woo_pdf_vou_main:nth-of-type(3) .woo_vou_padding:nth-of-type(2) { | |
display: none; | |
} | |
</style>'; | |
} | |
// Add filter to add custom css | |
add_filter ( 'woo_vou_check_qrcode_cstm_style', 'woo_vou_allow_admin_to_bcc_func' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment