escape($_POST['first_name']); $lastName = $wpdb->escape($_POST['last_name']); $nickName = $wpdb->escape($_POST['user_nicename']); $displayName = $wpdb->escape($_POST['display_name']); $firsttext = $wpdb->escape($_POST['betube_heading_one']); $secondtext = $wpdb->escape($_POST['betube_heading_second']); $email = $wpdb->escape($_POST['email']); $user_url = $wpdb->escape($_POST['website']); $user_phone = $wpdb->escape($_POST['phone']); $facebook = $wpdb->escape($_POST['facebook']); $twitter = $wpdb->escape($_POST['twitter']); $googleplus = $wpdb->escape($_POST['google-plus']); $youtube = $wpdb->escape($_POST['youtube']); $vimeo = $wpdb->escape($_POST['vimeo']); $pinterest = $wpdb->escape($_POST['pinterest']); $instagram = $wpdb->escape($_POST['instagram']); $linkedin = $wpdb->escape($_POST['linkedin']); $description = $wpdb->escape($_POST['desc']); $password = $wpdb->escape($_POST['pwd']); $newPassword = $wpdb->escape($_POST['confirm']); update_user_meta( $user_ID, 'first_name', $firstName ); update_user_meta( $user_ID, 'last_name', $lastName ); update_user_meta( $user_ID, 'user_nicename', $nickName ); update_user_meta( $user_ID, 'firsttext', $firsttext ); update_user_meta( $user_ID, 'display_name', $displayName ); update_user_meta( $user_ID, 'secondtext', $secondtext ); update_user_meta( $user_ID, 'phone', $user_phone ); update_user_meta( $user_ID, 'facebook', $facebook ); update_user_meta( $user_ID, 'twitter', $twitter ); update_user_meta( $user_ID, 'googleplus', $googleplus ); update_user_meta( $user_ID, 'youtube', $youtube ); update_user_meta( $user_ID, 'vimeo', $vimeo ); update_user_meta( $user_ID, 'linkedin', $linkedin ); update_user_meta( $user_ID, 'pinterest', $pinterest ); update_user_meta( $user_ID, 'instagram', $instagram ); update_user_meta( $user_ID, 'description', $description ); wp_update_user( array ('ID' => $user_ID, 'user_url' => $user_url) ); if(isset($email)) { if (preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/", $email)){ wp_update_user( array ('ID' => $user_ID, 'user_email' => $email) ) ; } else { $message = '
' . esc_html__( 'Please enter a valid email id.', 'betube' ) . '
'; } } if(isset($password) && !empty($newPassword)) { if (strlen($password) < 5 || strlen($password) > 25) { $message = '
' . esc_html__( 'Password must be 5 to 15 characters in length.', 'betube' ) . '
'; } if(isset($newPassword) && $newPassword == $password) { $message = '
' . esc_html__( 'You are using Old Password for update, Please use new Password.', 'betube' ) . '
'; } elseif ( isset($newPassword) && !empty($password) ) { $update = wp_set_password( $newPassword, $user_ID ); $message = '
' . esc_html__( 'Your Profile is Updated Successfully!', 'betube' ) . '
'; } } } /*ImageUploading*/ if ( isset($_FILES['upload_attachment']) || isset($_FILES['upload_profile'])){ $files = $_FILES['upload_attachment']; $profile = $_FILES['upload_profile']; //Update Profile background// foreach ($files['name'] as $key => $value) { if ($files['name'][$key]) { $file = array( 'name' => $files['name'][$key], 'type' => $files['type'][$key], 'tmp_name' => $files['tmp_name'][$key], 'error' => $files['error'][$key], 'size' => $files['size'][$key] ); $_FILES = array("upload_attachment" => $file); foreach($_FILES as $file => $array){ $newupload = betube_insert_userIMG($file); if(!empty($newupload )){ update_user_meta( $user_ID, 'betube_author_profile_bg', $newupload ); } } } } //Update Profile background// //Update Profile IMG foreach ($profile['name'] as $key => $value) { if ($profile['name'][$key]) { $file = array( 'name' => $profile['name'][$key], 'type' => $profile['type'][$key], 'tmp_name' => $profile['tmp_name'][$key], 'error' => $profile['error'][$key], 'size' => $profile['size'][$key] ); $_FILES = array("upload_profile" => $file); foreach($_FILES as $file => $array){ $profileAva = betube_insert_userIMG($file); if(!empty($profileAva )){ update_user_meta( $user_ID, 'betube_author_avatar_url', $profileAva ); } } } } //Update Profile IMG } } get_header(); betube_breadcrumbs(); ?> ID); $current_page_id = $page->ID; $betubeProfileIMG = get_user_meta($user_ID, "betube_author_profile_bg", true); if(!empty($betubeProfileIMG)){ $betubeProfileIMG = betube_get_image_url($betubeProfileIMG); } ?>

0 0 0
...

:

:
:
:
:
: