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

WordPress Trac noreply at wordpress.org
Fri Oct 16 00:47:50 UTC 2015


#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 MikeSchinkel):

 @sc0ttkclark That change would unfortunately result in not filtering all
 `$post` instances so it makes it a non-starter.

 I'm going to look at `WP_Post::get_instance()` to see if I can instead add
 a filter there to achieve the same w/o running the filter more often than
 needed.

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


More information about the wp-trac mailing list