Advertisement
eventsmanager

my_bookings shortcode

Feb 19th, 2013
290
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');
Advertisement
RAW Paste Data Copied
Advertisement