Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Goto to Events > Bookings > Click on the Gear Icon > Choose 'WC Total Payment'
- */
- function my_em_bookings_table_cols_template_wc_total($template, $EM_Bookings_Table){
- $template['total_paid'] = 'WC Total Payment';
- return $template;
- }
- add_action('em_bookings_table_cols_template', 'my_em_bookings_table_cols_template_wc_total',10,2);
- function my_em_custom_booking_form_cols_wc_total($val, $col, $EM_Booking, $EM_Bookings_Table, $csv){
- if( $col == 'total_paid' ){
- $val = get_post_meta($EM_Booking->booking_meta['woocommerce']['order_id'],'_order_total',true);
- }
- return $val;
- }
- add_filter('em_bookings_table_rows_col','my_em_custom_booking_form_cols_wc_total', 10, 5);
Add Comment
Please, Sign In to add comment