SHARE
TWEET

events list shortcode per logged-in user

eventsmanager Dec 27th, 2017 169 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top