Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * Part 1: https://pastebin.com/7DaB0bqq
- * should be created under wp-content/themes/Your Theme Name/plugins/events-manager/templates/my-past-bookings.php
- *
- * Part 2: the snippet below should be added at the end of your theme functions.php or use mu-plugins
- * http://wp-events-plugin.com/tutorials/how-to-safely-add-php-code-to-wordpress/
- * usage: [my_past_bookings] in your WP page or post
- */
- function em_get_my_past_bookings(){
- if( get_option('dbem_css_rsvp') ) echo '<div class="css-my-bookings">';
- em_locate_template('templates/my-past-bookings.php', true);
- if( get_option('dbem_css_rsvp') ) echo '</div>';
- }
- function em_my_past_bookings_shortcode( $args = array() ){
- return em_get_my_past_bookings();
- }
- add_shortcode ( 'my_past_bookings', 'em_my_past_bookings_shortcode');
Add Comment
Please, Sign In to add comment