[wp-trac] [WordPress Trac] #30327: Pass query reference to "the_post" action
WordPress Trac
noreply at wordpress.org
Wed Nov 12 22:55:32 UTC 2014
#30327: Pass query reference to "the_post" action
-------------------------+-----------------------------
Reporter: tlovett1 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Query | Version: trunk
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
An action is fired in WP_Query::setup_postdata "the_post". Right now it is
passed a reference to the current post. It would be nice to also pass a
reference to the current query so someone can hook onto this action and do
things with the post depending on the type of query.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30327>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list