dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
111 stars 31 forks source link

load a realtime database document using 'userId' 's value instead having to put the actual Id #76

Closed bejisan closed 4 years ago

bejisan commented 4 years ago

Would it be possible to display a userId (pushId) so that I can display a User fields.

Also how can I have a form that changes users fields in the realtime database keeping the same userId and not creating a new pushId for the form.

I guess it comes to being able to make any form tape into a specific pushId so that people can modify its values

dalenguyen commented 4 years ago

Hi @bejisan, userID can be generated automatically after they log in by putting a documentId field. Is it what you are looking for?

https://firebase-wordpress-docs.readthedocs.io/en/latest/database/save-data-realtime-firestore.html

bejisan commented 4 years ago

Yes It does work I get the right User's info rewritten, I lose some in the process, but it works.

However it works with firebaseweb-ui getCurrentUserId.