Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- This snippet will auto approved Offline Payment Gateway
- */
- function my_offline_auto_approve_filter( $result, $EM_Booking ){
- //$EM_Event = $EM_Booking->get_event()
- /*
- foreach($EM_Event->get_categories() as $EM_Category){
- }
- */
- if( $EM_Booking->booking_meta['gateway'] == 'offline' ){
- $EM_Booking->set_status(1,false);
- }
- return $result;
- }
- add_filter('em_booking_save', 'my_offline_auto_approve_filter', 100, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement