eventsmanager

events list shortcode per logged-in user

Dec 27th, 2017
225
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function custom_events_list(){
  2.  
  3. $user_id = get_current_user_id();
  4.  
  5. echo do_shortcode('[events_list pagination=1 limit=10 scope="future" owner="'.$user_id.'" ]');
  6.  
  7. }
  8. add_shortcode('events_list_byowner', 'custom_events_list');
RAW Paste Data