[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 05:47:57 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:
-------------------------+------------------------------
Changes (by pento):
* keywords: 2nd-opinion =>
Comment:
I'm still not wild about the `after_query` action - it feels like a very
edge-case action, which usually means it's just going to get in the way as
we try to maintain WPDB.
Have you considered creating a `db.php` drop-in that inherits WPDB?
Something like what @johnbillion has done [https://github.com/johnbillion
/query-monitor/blob/master/wp-content/db.php here] would suit what you're
after.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29710#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list