Changes between Version 1 and Version 2 of Ticket #29505, comment 1
- Timestamp:
- 09/04/2014 09:20:10 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29505, comment 1
v1 v2 10 10 {{{ 11 11 function 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; 12 15 delete_user_option( $user->ID, 'wp-lock-bg-solid'); //deleting one user option 13 16 if(update_user_meta( $user->ID, 'wp-lock-bg', serialize($bgs))){ //adding another user option