Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Zapisujemy ustawienia
- function kolor_zapisz()
- {
- global $wpdb, $user_ID;
- if (preg_match('&profile.php&', $_SERVER['REQUEST_URI'])) {
- $id = $user_ID;
- }
- elseif($_GET['user_id']) {
- $id = $_GET['user_id'];
- }
- if($_POST['kolor']) { update_usermeta($id ,'kolor', $_POST['kolor']); } else { update_usermeta($user_ID, 'kolor', ''); }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement