eventsmanager

RSS per Owner

May 20th, 2015
337
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. * This snippet will allow the rss show events per owner (using user ID)
  3. * eg. http://domain.com/events/feed/?owner=2 (change 2 with your wp user id)
  4. */
  5.  
  6. function my_custom_rss_owner($args){
  7. $args['owner'] = $_REQUEST['owner'];
  8. return $args;
  9. }
  10. add_filter( 'em_rss_template_args','my_custom_rss_owner',10,1);
RAW Paste Data