eventsmanager

Removed Bookings Summary "Transactions" section

Jan 2nd, 2019
225
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. * This snippet will removed Transactions section or summary under Events > Bookings
  3. */
  4. function my_em_mod(){
  5. global $EM_Gateways_Transactions;
  6. remove_action('em_bookings_dashboard', array($EM_Gateways_Transactions, 'output'),10,1);
  7. remove_action('em_bookings_ticket_footer', array($EM_Gateways_Transactions, 'output'),10,1);
  8. remove_action('em_bookings_single_footer', array($EM_Gateways_Transactions, 'output'),10,1);
  9. remove_action('em_bookings_person_footer', array($EM_Gateways_Transactions, 'output'),10,1);
  10. remove_action('em_bookings_event_footer', array($EM_Gateways_Transactions, 'output'),10,1);
  11. }
  12. if( is_admin() ){
  13. add_action('init','my_em_mod', 1000);
  14. }
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×