fbpx
Participate in our upcoming live webinar to learn how you can manage your commissions with the Stripe Split Payment on 31st July at 10 pm IST. Register 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');
    
Create Default Image Path Filter
Ashok Dudhat

Our team constantly explores ways that technology can help us reinvent industries. We want to change the world by creating great products that transform industries. We Dream It, We Make It.

Quick Links
Close
Close