Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #29505, comment 1


Ignore:
Timestamp:
09/04/2014 09:16:33 AM (10 years ago)
Author:
miqdadk
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29505, comment 1

    initial v1  
    1010{{{
    1111function plugin_activated(){
    12 
    13    if(update_user_meta( $user->ID, 'wp-lock-bg', serialize($bgs))){
     12   delete_user_option( $user->ID, 'wp-lock-bg-solid');  //deleting one user option
     13   if(update_user_meta( $user->ID, 'wp-lock-bg', serialize($bgs))){ //adding another user option
    1414       echo "true";
    1515   }