Bookmarks

Bookmarks

The Bookmark addon allows attendees to bookmark events and organizers to bookmark attendees easily.

It is compulsory for a user to login in to bookmark an event. Users can also add personalized notes to an event while bookmarking.

Installing the plugin

The installation process is the same for all the addons, offered by WP Event Manager. They can be both installed automatically and manually.

  1. 1.Automatic Installation : You can install the plugin from the backend of your WordPress. Click Here to see how you can install the plugin automatically.
  2. 2.Manual Installation : You can install the plugin from the backend of your WordPress. Click Here to see how you can install the plugin manually.

Complete Video Guide On Bookmarks Add On

How To Bookmark an Event and Add Note?

In order to add a bookmark, a user needs to log into WP Event Manager.

  1. Login to your account.
  2. Visit the Event Detail Page, it will show a bookmark box at the top of the listing. This will look something like the following image:

  3. Clicking on the “Bookmark this event” button will open the “Add Bookmark form”. Here, a user can add a note for the bookmark if he or she wants to and save it. 
    Wp Event Manager Bookmarks Note
  4. After bookmarking, you can check all the bookmarked events on the page named My Bookmarks or you can click on the here button.
    Wp Event Manager Bookmark Alert

Wp Event Manager Bookmarked-Events

Note: An organizer needs to follow the same process, mentioned above.

How to remove bookmarks from an event detail page from the Frontend?

Users can remove bookmarks from only those events which are already added to the list of bookmarked events.

  1. Go to the Event dashboard.
  2. You need to click on the specific bookmarked event that you want to remove from the bookmark list. 
  3. Then go to that event detail page and this time you will get the Remove Bookmark option.
  4. Clicking on the Remove Bookmark option, the bookmark will be removed from the event.
    Event-Detail-Remove-Bookmark-Event

Another way to remove bookmark is mentioned below:

  1. Go to the event dashboard
  2. Click on Bookmarks
  3. Here you can view all the bookmarked events. 
  4. Go to the Action section of the specific event from which you want to remove the bookmark. 
  5. Click on the Delete icon.
  6. Wp Event Manager Bookmarked Event Delete

How To Get the List of All Bookmarked Events Using Shortcodes?

To access the list of all bookmarked events with shortcodes, you need to follow the below mentioned steps:

  • Create a new page with these steps WP-admin >> Pages >> Add New.
  • Name it “My Bookmarks”. or “My Event Bookmarks”.
  • Add this shortcode inside the content area: [event_manager_my_bookmarks]
    Wp Event Manager Bookmarks Setup

It is recommended for you to insert the shortcode into the ‘text’ view of the visual editor to ensure it gets formatted correctly.

  • The [event_manager_my_bookmarks] shortcode displays all the event listings that the user has bookmarked (events and attendees).
  • Each bookmark links to the event/attendee in the table. Users can also edit/update and delete the bookmark details from this table.

Advanced: Managing Bookmark Button & Bookmark Form

  • The bookmark form is hooked into the event page after the event meta place as shown below:
  1. <?php

  2.        add_action( 'single_event_listing_button_end', array( $this, 'bookmark_form' ) );

  3. ?>
  • To remove and move to a different place, you can do like this:
  1. <?php

  2. /**
  3.  * Move my bookmark message place to perfect place.

  4.  * Show my bookmark message after button section that way we have hooked 'single_event_listing_button_end' hook and it will show at after button section.
  5.  * @param  array $steps

  6.  * @return array

  7.  * @since 1.0.0

  8.  */

  9. function move_my_bookmark_events_message()

  10. {
  11.     global $event_manager_bookmarks;     
  12.     if ( has_action(  'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form'  )) )

  13.     {

  14.        remove_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );

  15.     }     

  16.     if ( has_action('single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form')))

  17.     {

  18.         remove_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );

  19.         add_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );       

  20.     }

  21.     else

  22.     {

  23.        add_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );

  24.     }        

  25. } 
  26. add_action( 'wp', 'move_my_bookmark_events_message', 12 );

  27. ?>
  • In General, You can use your choice of custom hook to append the form to a different place.
  1. <?php
  2.      global $event_manager_bookmarks; 
  3.      add_action( 'your_custom_hook', array( $event_manager_bookmarks, 'bookmark_form' ) );
  4. ?>

Advanced: Overriding/Customizing the Template Files

For overriding or customization, template files can be found in the wp-event-manager-bookmarks/templates/ directory. To override a template file, follow the below mentioned steps.

  1. First you need to create directory “wp-event-manager-bookmarks” under your theme folder.
  2. Copy the template file to “/wp-content/yourtheme/wp-event-manager-bookmarks/” directory.
  3. Your theme will use all the template files from the “/wp-content/yourtheme/wp-event-manager-bookmarks/” directory instead of the plugin’s template file (/wp-content/plugins/wp-event-manager-bookmarks/).
    • my-bookmarks.php template file lists the user’s bookmarks.
    • bookmark-form.php template file which controls the bookmark form display on events and attendee page.

    Remember: If you have overridden template file and plugin frequently updating then you need to sync template file with new updates from the plugin’s template file for better functionality and new features.


    • Related Articles

    • How To Install WP Event Manager Add ons

      WP Event Manager offers a huge number of addons that help you strengthen your WordPress site with some amazing and very useful event management features and functionalities. While installing a premium addon, you need to ensure that you already have ...
    • Event Alerts

      The Alert plugin lets the registered users on your site create Event Alerts on a daily, weekly or fortnightly basis depending on popular searches with keywords, location or categories. Installing The Plugin The installation process is the same for ...
    • Event Calendar

      An interactive calendar that stylishly displays your upcoming event dates and details. Installing The Plugin The installation process is the same for all the addons, offered by WP Event Manager. They can be both installed automatically and manually. ...
    • Event Tag snippets

      The Event Tags in WP Event Manager are designed to simplify the process of searching events. It allows users to search for events quickly with targeted keywords. Event Tags can be customized with the help of below mentioned Event Tag snippet. Here ...
    • Event Tags

      Using the Event Tags plugin, you can add a new ‘event tags’ field to the submit process, show events filtered by tag via a shortcode, and add tag filtering to the standard events shortcode. Installing The Plugin The installation process is the same ...