Horje
Need snippet to render back-end page in the front-end of a voucher plugin - Wordpress Solution
[Solved] - Need snippet to render back-end page in the front-end of a voucher plugin - Wordpress Solution
Try following codes
I'm using a pdf voucher plugin. Would like to render exact same page (info) and 2 button functionalities. I need php snippet to insert to my custom page. Please let me know if you can help. Thanks.

Solution - 1

Good morning, We need some more info. We would need to see which function is generating this info and then create a shortcode to show it in the front-end.


Solution - 2

Hello add this code to your functions.php function rem_coupon_table(){ global $current_user; ob_start(); //Create an instance of our package class... $WooPurchasedVouListTable = new WOO_Vou_List(); //Fetch, prepare, sort, and filter our data... $WooPurchasedVouListTable->prepare_items(); ?>

'.__("Voucher code deleted successfully.",'woovoucher').'

'; } //showing sorting links on the top of the list $WooPurchasedVouListTable->views();?>
search_box( __( 'Search', 'woovoucher' ), 'woovoucher' ); ?>
'1' ) ); $exportcsvurl = add_query_arg( array( 'woo-vou-voucher-exp-csv' => '1' ) ); $html = ''.__( 'Export CSV', 'woovoucher' ).''; echo apply_filters( 'woo_vou_hide_voucher_codes_export_csv', $html ); $html = ''.__( 'Generate PDF', 'woovoucher' ).''; echo apply_filters( 'woo_vou_hide_voucher_codes_generate_pdf', $html ); ?>
display(); ?>
Date: 2022-10-21 04:52:41
Category: Wordpress
More for You