[wp-trac] [WordPress Trac] #15515: content_save_pre et al don't supply context

WordPress Trac noreply at wordpress.org
Fri Oct 30 23:22:16 UTC 2015


#15515: content_save_pre et al don't supply context
-------------------------------+-----------------------------
 Reporter:  johnbillion        |       Owner:
     Type:  enhancement        |      Status:  reopened
 Priority:  normal             |   Milestone:  Future Release
Component:  Posts, Post Types  |     Version:  2.3
 Severity:  normal             |  Resolution:
 Keywords:  has-patch          |     Focuses:
-------------------------------+-----------------------------

Comment (by westonruter):

 My use case here is to intercept some pre-save filters for a certain post
 type. But in the case of `wp_insert_post()`, the `$post_id` would have to
 be empty since the post hasn't been inserted yet, so that context wouldn't
 be directly available.

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


More information about the wp-trac mailing list