[wp-trac] [WordPress Trac] #29710: Add hooks to wpdb's insert(), update(), delete() and similar methods

WordPress Trac noreply at wordpress.org
Sun Sep 21 19:01:10 UTC 2014


#29710: Add hooks to wpdb's insert(), update(), delete() and similar methods
-------------------------+------------------------------
 Reporter:  borekb       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Database     |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:
-------------------------+------------------------------

Comment (by borekb):

 Missed something obvious, sorry. The `'query'` filter would not work for
 us because it is fired before the query executes. For the insert scenario,
 we need to do our work after the query was run.

 Let me ask the other way around - what would be the reasons not to include
 the proposed hooks? One reason that comes to mind is that list of
 available hooks would grow. Is there anything else I'm possibly missing?
 These hooks would still greatly help us, even if there might still be
 situation where we'll need to do something extra.

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


More information about the wp-trac mailing list