get_user_meta and umeta_id

You can fix this in 1 of 2 ways: change the call to add_user_meta() to update_user_meta() when your 1st conditional evals to true. As explained in update_user_meta(), “If the meta field for the user does not exist, it will be added.” pass true as the $unique (4th) param to add_user_meta(). As explained in add_user_meta(), the … Read more

Same DB for live and dev versions

It would be bad practice to have two sites running off the same database. This is especially true if you were to perform plugin / core updates on one or the other. You would be much better off using something like migrate-db (https://wordpress.org/plugins/wp-migrate-db/) to perform a migration. The maintainers of migrate db are also working … Read more