The Bookmark add-on allows attendees to bookmark events and organizers to bookmark attendees easily.
It is compulsory for a user to log 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 add-ons offered by WP Event Manager. They can be installed automatically and manually.
Automatic Installation: You can install the plugin from the backend of your WordPress. Click here to see how you can install the plugin automatically.
Manual Installation: You can install the plugin manually using SFTP or FTP tools. Click here to see how you can install the plugin manually.
Watch the complete video guide on the Bookmark addon.
How to Bookmark an Event and Add a Note
In order to add a bookmark, a user needs to log in to WP Event Manager.
Log in to your account.
Visit the Event Detail Page. It will show a bookmark box at the top of the listing, as shown in the image below.
Click the Bookmark This Event button. This will open the Add Bookmark form.
Add a note for the bookmark, if required, and save it.
After bookmarking, you can check all the bookmarked events on the Events page configured in the Bookmark Settings.
How to Remove Bookmarks from an Event Detail Page from the Frontend
Users can remove bookmarks only from events that are already added to the list of bookmarked events.
Go to the Event Dashboard.
Click on the specific bookmarked event that you want to remove from the bookmark list.
Go to that event detail page. You will see the Remove Bookmark option.
Click on the Remove Bookmark option to remove the bookmark from the event.
Another Way to Remove a Bookmark
You can also remove a bookmark from the bookmarked events table.
Go to the Event Dashboard.
Click on Bookmarks.
Here, you can view all the bookmarked events.
Go to the Action section of the specific event from which you want to remove the bookmark.
Click on the Delete icon.
Users can add or remove bookmarks from the table.
How to Get the List of All Bookmarked Events Using Shortcodes
To access the list of all bookmarked events using a shortcode, follow the steps below:
Create a new page by going to WP Admin >> Pages >> Add New.
Name the page Events.
Add the following shortcode inside the content area:
- [event_manager_my_bookmarks]
Publish the page.
It is recommended that you 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.
After creating the page with the shortcode, you need to select this page in the Bookmark Settings.
Bookmark Settings
To access the Bookmark Settings section, follow these steps:
Go to WP Admin.
Click on Event Manager.
Select Settings.
Click on the Event Bookmark tab.
Here, you will get the following options:
Bookmarks Page Name
Bookmarks Page Name is a dropdown menu that contains the available pages.
You need to select the page where you have added the [event_manager_my_bookmarks] shortcode.
Delete Data on Uninstall
Enabling this option means your bookmarking data will be deleted once you uninstall the plugin.
Bookmarking Matchmaking Participants
Event participants can easily bookmark the matches they are interested in using this addon.
To bookmark a matchmaking participant:
Go to the Matchmaking List on the frontend event dashboard.
Click on the Participants tab. This will display the list of all participants.
Each participant has a bookmark action icon.
Click the bookmark icon next to the participant you are interested in.
After bookmarking participants, users can view their bookmarked users on the bookmarks page configured in the Bookmark Settings.
Advanced: Managing Bookmark Button and Bookmark Form
The bookmark form is hooked into the event page after the event meta place, as shown below:
add_action( 'single_event_listing_button_end', array( $this, 'bookmark_form' ) );
To remove it and move it to a different place, you can do it like this:
- /**
- * Move my bookmark message to the perfect place.
- *
- * Show my bookmark message after the button section. That way, we have hooked the 'single_event_listing_button_end' hook, and it will show after the button section.
- * @param array $steps
- *
- * @return array
- *
- * @since 1.0.0
- */
- function move_my_bookmark_events_message()
- {
- global $event_manager_bookmarks;
- if ( has_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) ) )
- {
- remove_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );
- }
- if ( has_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) ) )
- {
- remove_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );
- add_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );
- }
- else
- {
- add_action( 'single_event_listing_button_end', array( $event_manager_bookmarks, 'bookmark_form' ) );
- }
- }
- add_action( 'wp', 'move_my_bookmark_events_message', 12 );
- In general, you can use your choice of custom hook to append the form to a different place.
- global $event_manager_bookmarks;
- add_action( 'your_custom_hook', array( $event_manager_bookmarks, 'bookmark_form' ) );
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 steps below:
First, create a directory named wp-event-manager-bookmarks under your theme folder.
Copy the template file to the /wp-content/yourtheme/wp-event-manager-bookmarks/ directory.
Your theme will use all the template files from the /wp-content/yourtheme/wp-event-manager-bookmarks/ directory instead of the plugin's template files located at /wp-content/plugins/wp-event-manager-bookmarks/.
The following template files are available:
my-bookmarks.php: This template file lists the user's bookmarks.
bookmark-form.php: This template file controls the bookmark form display on events and attendee pages.
add-bookmark-success.php: This template file controls the layout of the success message displayed after a bookmark is added. You can override the default layout from this file.
delete-bookmark-success.php: This template file controls the layout of the success message displayed after a bookmark is removed. You can override the default layout from this file.
login-to-bookmark-form.php: This template file controls the behavior and layout shown when a user who is not logged in tries to bookmark someone. It displays a login button, which can be customized or overridden from this file.
matchmaking-bookmarked-users.php: This template file controls the layout of the user list containing users who have bookmarked other users that match their preferences.