[wp-trac] [WordPress Trac] #40850: WP_Query->have_posts() -- add action if no results are found

WordPress Trac noreply at wordpress.org
Tue May 23 17:20:31 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:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 We can hook into `loop_start` and `loop_end` when results are found, but
 there's no `loop_no_results` hook. This patch adds that!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40850>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list