[wp-trac] [WordPress Trac] #29505: Both update_user_option and update_user_meta returning false
WordPress Trac
noreply at wordpress.org
Fri Sep 5 09:08:00 UTC 2014
#29505: Both update_user_option and update_user_meta returning false
--------------------------+------------------------------
Reporter: miqdadk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 4.0
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by miqdadk):
Its working fine in 3.9.2. Here is actual code
{{{
class test_plugin{
function __construct(){
register_activation_hook( __FILE__, array( $this,
'plugin_activated'));
}
function plugin_activated(){
$users = get_users( array( 'fields' => array( 'ID' ) ) );
foreach($users as $user){
delete_user_option($user->ID, 'wp-lock-bg-solid');
delete_user_option($user->ID, 'wp-lock-bg');
}
}
}
new test_plugin;
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29505#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list