Make WordPress Core

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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29505, comment 1

    v1 v2  
    1010{{{
    1111function plugin_activated(){
     12    $bgs = 'a:1:{i:0;s:93:"http://192.168.1.175/delta/wp4.0rc/wp-content/plugins/lock-it-up/templates/img/bg/default.jpg";}';
     13    $user = new stdClass();
     14    $user->ID = 1;
    1215   delete_user_option( $user->ID, 'wp-lock-bg-solid');  //deleting one user option
    1316   if(update_user_meta( $user->ID, 'wp-lock-bg', serialize($bgs))){ //adding another user option