Advertisement
eventsmanager

Custom event placeholder

Mar 11th, 2024 (edited)
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. <?php
  2.  
  3. add_filter('em_event_output_placeholder','my_em_placeholder_custom_script',100,3);
  4. function my_em_placeholder_custom_script($replace, $EM_Event, $result){
  5. if ( $result == '#_EVENTBACKBUTTON' ) {
  6. $replace = $EM_Event->output('<script>alert( " TEST: #_EVENTNAME " );</script>');
  7. }
  8. return $replace;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement