[wp-trac] [WordPress Trac] #12955: Add get_post filter

WordPress Trac noreply at wordpress.org
Thu Jun 9 04:30:16 UTC 2016


#12955: Add get_post filter
------------------------------------+-----------------------------
 Reporter:  JohnLamansky            |       Owner:
     Type:  feature request         |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Posts, Post Types       |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+-----------------------------

Comment (by dd32):

 Just like to throw my support for @boonebgorges's comments above here.
 We really can't introduce a `get_post` filter until we've opened up the
 ability for post types to have `WP_Post` subclasses (which can only happen
 after we actually implement `WP_Post` further than a cache wrapper, and
 have solidified it's API in stone forever). Doing so would cause a lot of
 compatibility issues down the road when we did do allow that.

 I say this having run into lots of scenario's where having a `get_post`
 filter would've been very useful.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/12955#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list