Subscribe to our YouTube for the latest product updates and more! Subscribe now
How can we help?

Create default image path filter

In this WP Event Manager tutorial, you will learn about how you can create a default image path filter.

Every event  organizer tries to gain as much attention as possible from their visitors or target audiences and using an attractive event banner offers the most useful way of attracting people towards an event.

Sometimes, the banner of an event does not get the importance that it deserves from the event organizers and they tend to forget about it. Not having any event banner is certainly not a good option. To avoid such things, one can create a default image path filter which adds a default banner to the event.

To create a default image path filte, you need to follow the below mentioned steps:

  1. Create a child theme and open function.php.
  2. Open your active theme function.php.
  3. Add the following code :
       function default_event_banner($image_url)
        {
            $image_url = 'https://wp-eventmanager.com/wp-content/uploads/plugins-icons/wp-event-manager.png';
    
            return $image_url;
        }
    
       add_filter('event_manager_default_event_banner', 'default_event_banner');
    
Quick Links
Close
Close