[wp-trac] [WordPress Trac] #10327: update_user_meta Filter
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 1 19:50:02 UTC 2009
#10327: update_user_meta Filter
-------------------------+--------------------------------------------------
Reporter: 5ubliminal | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Plugins | Version: 2.8
Severity: normal | Keywords:
-------------------------+--------------------------------------------------
A filter on the '''update_usermeta''' would be great. It's a rather
sensitive area but we could use it. It should go right under:
{{{
$meta_key = preg_replace('|[^a-z0-9_]|i', '', $meta_key);
}}}
like this:
{{{
$meta_value = apply_filters('update_user_meta', $meta_value, $meta_key,
$user_id);
}}}
I use this to intercept changes on capabilities which are not filtered
anywhere... afaik.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10327>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list