[wp-trac] [WordPress Trac] #29710: Add hooks to wpdb's insert(), update(), delete() and similar methods
WordPress Trac
noreply at wordpress.org
Mon Sep 29 23:19:35 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 pento):
I'd be more comfortable with an `after_query` action - it's explicitly
read-only, so we won't be encouraging plugins to modify the query on the
fly.
If it's at the end of `wpdb::query()`, any plugin that wants to use it can
read the various `wpdb` members set in `query()` (`insert_id`,
`rows_affected`, `last_result`) to get the information they need, without
us needing to pass things in the action that we may want to change at a
later date.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29710#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list