Class EPL_Elementor_Template_Router

Free-Elementor equivalent of Elementor Pro's Theme Builder, built entirely out of EPL's own template bypass actions:

  • Single listings: hooks epl_single_template when a published EPL Single Listing document matches the current post type.
  • Listing cards: renders an EPL Listing Card document on demand, only where a widget explicitly opts a loop into one (EPL Archive Results, EPL Listing Advanced, EPL Listings) — there is no site-wide auto-applied card.
  • Archive pages: swaps only the resolved template file on template_include for a page assigned as the listings archive, leaving the real main query, pagination and canonical URL untouched.

Elementor Pro's Theme Builder always wins when a matching condition exists for the same location, via elementor_location_exits().

Methods