eventsmanager

Hide coupon selection on event submission form to guest

Jun 26th, 2015
359
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function hide_coupon(){
  2. if ( !is_user_logged_in() ) remove_action('em_events_admin_bookings_footer',array('EM_Coupons', 'admin_meta_box'),20,1);
  3. }
  4. add_action( 'init', 'hide_coupon' );
RAW Paste Data