[wp-trac] [WordPress Trac] #40850: WP_Query->have_posts() -- add action if no results are found
WordPress Trac
noreply at wordpress.org
Tue Jun 13 20:34:53 UTC 2017
#40850: WP_Query->have_posts() -- add action if no results are found
-------------------------+------------------------------
Reporter: mgibbs189 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
-------------------------+------------------------------
Comment (by mgibbs189):
@SergeyBiryukov @swissspidy Howdy, could I please get dev feedback on this
one?
We're doing template auto-detection for FacetWP, and this
`loop_no_results` action will allow us to "latch on" to the template when
no results are found... which isn't currently possible via `loop_start` or
`loop_end`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40850#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list