New answers tagged

0

it was just missing $upload_dir['path'] . "/" . $upload_file_name in $uploaded_file['attach_id'] = wp_insert_attachment($attachment, $upload_dir['path'] . "/" . $upload_file_name); require_once(ABSPATH . 'wp-admin/includes/image.php'); //Generate the metadata for the attachment, and update the database record. ...


0

You can create usermeta at time of insert user like, i create zip code in my site see this code, $user_id = wp_insert_user( array( 'user_login' => $user_email, 'user_pass' => wp_generate_password ( 12, false ), ...



Top 50 recent answers are included