Free-Elementor equivalent of Elementor Pro's Theme Builder, built entirely out of EPL's own template bypass actions:
epl_single_template when a published EPL Single
Listing document matches the current post type.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 | ||||||||
|---|---|---|---|---|---|---|---|---|
public
|
__construct()
Constructor.
Constructor. Since
|
# | ||||||
public
static
|
begin_card_override(int|array $override)
Force a specific Listing Card document for the duration of the
caller's own loop (e.g. EPL Archive Results' "Listing…
Force a specific Listing Card document for the duration of the caller's own loop (e.g. EPL Archive Results' "Listing Card" control). Callers must always pair this with end_card_override(), even on early returns. Parameters
Since
|
# | ||||||
public
static
|
end_card_override()
End a previously begun card override.
End a previously begun card override. Since
|
# | ||||||
public
|
maybe_route_single()
Hook the EPL Single Listing document matching the current listing's
post type into `epl_single_template`, if one is…
Hook the EPL Single Listing document matching the current listing's
post type into Since
|
# | ||||||
public
static
|
render_card(int $template_id): bool
Render an EPL Listing Card document for the current loop item.
Render an EPL Listing Card document for the current loop item. Safe to call repeatedly for different listings in the same loop: each template's CSS is only printed the first time it is used per request, and self-embedding is guarded against. Parameters
ReturnsTrue when the card was rendered, false when it could not be (missing, trashed, wrong type, or already rendering) so the caller can fall back rather than emit an empty listing. Since
|
# | ||||||
public
static
|
is_renderable_card(int $template_id): bool
Whether a post ID is a usable EPL Listing Card document.
Whether a post ID is a usable EPL Listing Card document. A card chosen in a widget can be trashed or deleted later, and the widget keeps the stale ID until the page is re-saved. Parameters
Since
|
# | ||||||
public
|
hook_card_override_listener()
Listen on `epl_loop_template_listing` so a widget's own explicit card
override (see begin_card_override()) can render…
Listen on Since
|
# | ||||||
public
|
render_card_override(array $vars)
`epl_loop_template_listing` callback: render a widget's own card
override when one is active, otherwise fall back to…
Parameters
Since
|
# | ||||||
public
|
filter_preview_listing_id(int $requested_id): int
Editor-preview support: let an EPL Single Listing / Listing Card
document's "Preview Listing ID" control drive `get…
Editor-preview support: let an EPL Single Listing / Listing Card
document's "Preview Listing ID" control drive Parameters
Since
|
# | ||||||
public
static
|
get_active_archive_page_id(): int
The archive page currently routed for this request, for the wrapper
template to read.
The archive page currently routed for this request, for the wrapper template to read. ReturnsPage ID, or 0. Since
|
# | ||||||
public
|
maybe_route_archive(string $template): string
Swap in the Archive Page wrapper template when the current request is
an EPL archive/search/taxonomy request and a page…
Swap in the Archive Page wrapper template when the current request is an EPL archive/search/taxonomy request and a page has been assigned. Registered at the same Parameters
Since
|
# | ||||||