Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * after adding in your functions.php, go to Events > Bookings > Recent Bookings or by clicking an specific
- * http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
- * click on the Gear icon and drag&drop field "SubTotal"
- */
- function my_em_bookings_table_cols_template_subtotal($template, $EM_Bookings_Table){
- $template['sub_total'] = 'SubTotal';
- return $template;
- }
- add_action('em_bookings_table_cols_template', 'my_em_bookings_table_cols_template_subtotal',10,2);
- function my_em_custom_booking_form_cols_subtotal($val, $col, $EM_Booking, $EM_Bookings_Table, $csv){
- if( $col == 'sub_total' ){
- $val = $EM_Booking->get_price_base(true);
- }
- return $val;
- }
- add_filter('em_bookings_table_rows_col','my_em_custom_booking_form_cols_subtotal', 10, 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement