Advertisement
eventsmanager

Disable EM activity log for buddypress

Feb 14th, 2022
82
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function remove_em_activity_log() {
  2. remove_filter('em_booking_set_status','bp_em_record_activity_booking_save', 100, 2);
  3. remove_filter('em_booking_save','bp_em_record_activity_booking_save', 100, 2);
  4. remove_filter('em_booking_delete','bp_em_record_activity_booking_save', 100, 2);
  5. }
  6. add_action( 'bp_init', 'remove_em_activity_log',100 );
Advertisement
RAW Paste Data Copied
Advertisement