Bookmarks

Bookmarks

Attendees/User can bookmark events and organizer can bookmark attendees/user using Bookmarks Plugin. Only logged in users can bookmarks. User can give an note while bookmark and this note is optional.

 
Installation
You can install Bookmarks plugin using 2 different ways:
 
[1] Automatic Installation : You can install plugin from backend of your WordPress. Click Here to see how you can do automatic installation.
 
[2] Manual Installation : You can install plugin manually using SFTP or FTP tool as well. Click Here to see how you can do manual installation.
 
Watch this video for more clarification.
 
How To Bookmark The Event and Add Note?

If user is logged in, visiting a event detail page or attendee profile (If you have the sell ticket plugin installed) will show a bookmark box at the top of the listing. This will look something like:

Bookmark Form

 

Clicking on this button, it will open the add bookmark form. User can optionally add a note for the bookmark and save it.

Bookmark Form

 

After bookmarking, this event page or attendee page will displayed “This Event is bookmarked!” or “This Attendee is bookmarked!“.:

Bookmark Form

 

Bookmark Form

 

Bookmark Form

 

How To Get List of Bookmarked Events Using Shortcode?
Create a new page from WP-admin >> Pages >> Add New, name it something along the lines of “My Bookmarks” or “My Event Bookmarks” and then inside the content area add this shortcode:
[event_manager_my_bookmarks]

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

The Shortcode Setup

 

The [event_manager_my_bookmarks] shortcode generate listing a users bookmarked (events and attendees). Each bookmark links to the event/attendee in table. User can also edit/update and delete the bookmark details.

 

Advanced: Controlling Bookmark Button & 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 and move to different place, you can do like this:

/**
 * Move my bookmark  message place to perfect place.
 * 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.
 * @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, first you need to create directory “wp-event-manager-bookmarks” under your theme folder and copy the template file to “/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 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 overrided 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.