eventsmanager

RSS per Owner

May 20th, 2015
404
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×