Advertisement
eventsmanager

Turn-off Auto Approved Offline Payment

Aug 28th, 2023 (edited)
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. <?php
  2.  
  3. /*
  4. This snippet will auto approved Offline Payment Gateway
  5. */
  6. function my_offline_turnoff_auto_approve_filter( $result, $EM_Booking ){
  7. if( $EM_Booking->booking_meta['gateway'] == 'offline' ){
  8. $EM_Booking->set_status(1,false);
  9. }
  10. return $result;
  11. }
  12. add_filter('em_booking_save', 'my_offline_turnoff_auto_approve_filter', 100, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement