fbpx

How can we help?

Bookmarks

The Attendees/Users can bookmark events and the organizers can bookmark attendees/users, using the Bookmarks Plugin.

It is compulsory for any user to login in case he wants to bookmark an event. Also, Users can mention personalized notes while bookmarking the event. However, this note is completely 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?

In order to add a bookmark, one needs to compulsory login.

  1. Login to your account.
  2. Visit the event detail page or attendee profile (If you have the sell ticket plugin installed),it will show a bookmark box at the top of the listing. This will look something like:
    WP event manager bookmark form
  3. Clicking on this button, it will open the add bookmark form. Users can optionally add a note for the bookmark and save it.
    WP event manager bookmarks note
  4. After bookmarking, you can check all the bookmarked events on the page My Bookmarks and delete them from here itself.
    WP event manager bookmarks delete

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”
  • Add this shortcode inside the content area: [event_manager_my_bookmarks]

    WP event manager bookmarks setup

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

  • The [event_manager_my_bookmarks] shortcode generates listing that the users have 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: Controlling Bookmark Button & Bookmark Form

  • The bookmark form is hooked into the event page after the event meta place as shown below:
  • <?php
           add_action( 'single_event_listing_button_end', array( $this, 'bookmark_form' ) );
    ?>
    
  • To remove and move to a different place, you can do like this:
  • <?php
    /**
     * 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.
  • <?php
         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,

  1. 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.

Was this article helpful?
How can we improve this article?