Template override through code
-
Hello, I want to override a wp-event-manager template through code.
Wp Event Manager documentation says to apply a filter in this way:
return apply_filters( 'event_manager_locate_template', $template, $template_name, $template_path );At the end of my function.php I put:
return apply_filters( 'event_manager_locate_template', '/wp-content/themes/Divi-child/wp-event-manager/', 'content-event_listing_custom.php', 'content-event_listing' );
but nothing change…Is my code correct?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Template override through code’ is closed to new replies.