Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Created December 6, 2016 14:05
Show Gist options
  • Save wpweb101/604a7e62bfd20d43b9c6c243d58138bb to your computer and use it in GitHub Desktop.
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
<?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