Changes between Initial Version and Version 1 of Ticket #29505, comment 6
- Timestamp:
- 09/05/2014 09:14:37 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29505, comment 6
initial v1 9 9 10 10 function plugin_activated(){ 11 $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";}'; 11 12 $users = get_users( array( 'fields' => array( 'ID' ) ) ); 12 13 foreach($users as $user){ 13 14 delete_user_option($user->ID, 'wp-lock-bg-solid'); 14 delete_user_option($user->ID, 'wp-lock-bg');15 update_user_option( $user->ID, 'wp-lock-bg', serialize($bgs)); 15 16 } 16 17 }