eventsmanager

my_bookings shortcode

Feb 19th, 2013
210
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2.  * Create a my_bookings shortcode for displaying the My Bookings info to users
  3. * Usage: insert [my_bookings] into a post or page
  4. */
  5. function em_my_bookings_shortcode( $args = array() ){
  6.     ob_start();
  7.     em_locate_template('templates/my-bookings.php',true, array('args'=>$args));
  8.     return ob_get_clean();
  9. }
  10. add_shortcode ( 'my_bookings', 'em_my_bookings_shortcode');
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.

×