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

WordPress Trac noreply at wordpress.org
Mon Nov 17 07:54:14 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:               |     Focuses:
-------------------------+------------------------------

Comment (by borekb):

 Replying to [comment:11 pento]:

 > Have you considered creating a `db.php` drop-in that inherits WPDB?

 That's what we do at the moment but it's a major problem if the site owner
 wants to use more `db.php` plugins. You can basically have only one plugin
 using `db.php` so in that sense, db.php is a "bottleneck" while actions /
 filters are not.

 (To be fair to db.php, it's not really its problem; there should be only
 one DB driver so it's probably OK to allow just one plugin to occupy it.
 The problem is the lack of other extensibility points in this area, so
 things that are ''not'' DB drivers like various debug plugins or our
 VersionPress often resort to it just because there's no other easy way.
 See also the IRC discussion linked in [comment:2 comment 2].)

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


More information about the wp-trac mailing list