[wp-trac] [WordPress Trac] #29505: Both update_user_option and update_user_meta returning false

WordPress Trac noreply at wordpress.org
Thu Sep 4 09:13:45 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:  trunk
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by miqdadk):

 Detail explanation


 {{{
 register_activation_hook( __FILE__, 'plugin_activated');
 }}}



 {{{
 function plugin_activated(){

    if(update_user_meta( $user->ID, 'wp-lock-bg', serialize($bgs))){
        echo "true";
    }
    else{
        echo "False";
    }
 }
 }}}

 always returning false. Tried with update_user_option too. same

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


More information about the wp-trac mailing list