eventsmanager

Cancel Button for Event

Mar 11th, 2026
2,624
1
Never
8
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 1 0
  1. add_filter('em_event_output_placeholder','my_cancel_button',100,3);
  2.  
  3. function my_cancel_button( $replace, $EM_Event, $result ){
  4. global $wpdb;
  5.  
  6. if ( $result == '#_EVENTCANCELBUTTON' ){
  7.  
  8. $replace = "";
  9.  
  10. if ( is_user_logged_in() ){
  11.  
  12. if( !isset($user_bookings) || !is_array($user_bookings) ){
  13. $sql = $wpdb->prepare('SELECT *, booking_status FROM '.EM_BOOKINGS_TABLE.' WHERE person_id=%d AND event_id=%d', array(get_current_user_id(), $EM_Event->event_id));
  14. if ( $EM_Event->timeslot_id ) {
  15. $sql .= ' AND timeslot_id=' . absint( $this->timeslot_id );
  16. }
  17. $user_bookings = $wpdb->get_results($sql);
  18. }
  19.  
  20. if( !empty($user_bookings) ){
  21. foreach ( $user_bookings as $EM_Booking ) {
  22.  
  23. $nonce = wp_create_nonce('booking_cancel');
  24. if( in_array( $EM_Booking->booking_status, array(1)) ){
  25. $cancel_url = em_add_get_params($_SERVER['REQUEST_URI'], array('action'=>'booking_cancel', 'booking_id'=>$EM_Booking->booking_id, '_wpnonce'=>$nonce));
  26. $replace = '<a class="em-bookings-cancel em-booking-submit button-secondary" href="'. esc_url($cancel_url) .'" onclick="if( !confirm(EM.booking_warning_cancel) ){ return false; }">'.__('Cancel Booking','events-manager').'</a>';
  27. }
  28.  
  29. }
  30.  
  31. }
  32.  
  33. }
  34.  
  35. }
  36.  
  37. return $replace;
  38. }
Advertisement
Comments
  • User was banned
  • User was banned
  • Geljuonoz
    178 days
    # CSS 0.83 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1S1iTruSLkgEPO8QtTuo2twS4f2FoJ3_l0-p4GKqeAUY/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8.  
    9. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    10.  
    11. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification).
  • User was banned
  • User was banned
  • User was banned
  • Gojolri
    9 days
    # CSS 1.04 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. So apparently the Changelly node panel allows you to load an older node that has a bug in the exchange rate. The funny thing is that it uses a simple password, "admin," to access it.
    6.  
    7. This made me $13,000 in 2 days.
    8.  
    9. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 50% — they will simply correct the exchange rate.
    10.  
    11. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    12.  
    13. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from Changelly — instant swap).
  • Injexov
    4 days
    # CSS 0.44 KB | 0 0
    1. Changelly Exploit Documentation Link:
    2.  
    3. https://docs.google.com/document/d/1Cz5fHkwyaApTWwqfgBBtpvConU8Lo_qJ9xtn7RazWpk/edit?usp=sharing
    4.  
    5. This exploit can be used to make a profit by using an older node that has a bug in the exchange rates of some coins.
    6.  
    7. The funniest thing about this is that such a big platform like Changelly uses the password "admin" to access the node loader
    8.  
    9. Join our Telegram Channel for more exploits: https://t.me/byprotocol
Add Comment
Please, Sign In to add comment