trying to determine if meta value exists for user and if not auto submit gravity form to redirect

Your <?php/?> tags are aligned such that none of your actual PHP code is being interpreted as PHP code (except the is_page (‘1150′) conditional) – it’s actually just printing it all into your markup, including the <script> element. So since it’s not running the logic to check the user or the user meta-data, the script … Read more

I want to update my user meta table

changing the code as below gave me my answer : $userdata = array( ‘user_login’ => $_POST[‘usname’], ‘user_pass’ => $_POST[‘passw’] // When creating an user, `user_pass` is expected. ); $user_id = wp_insert_user( $userdata ) ; update_user_meta( $user_id, ‘address’, $_REQUEST[‘address’] ); update_user_meta( $user_id, ‘age’, $_REQUEST[‘age’]); update_user_meta( $user_id, ‘class’, $_REQUEST[‘class’]); //On success if ( ! is_wp_error( $user_id ) … Read more

Adding user data to an existing user_id

here is Query. Try this, don’t forget to replace user_id with actual userid, meta key with your meta_key like “phone_no” and meta value with your meta_value like “1238899776”. INSERT INTO `wp_usermeta`(`user_id`, `meta_key`, `meta_value`) VALUES (1375,’_lastlogin’, ‘1497621956’)`

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)