Forums
Forums / Plugin: WP Data Access – No-Code App Builder with Tables, Forms, Charts & Maps / Default user id/name on insert
(@jkacher)
1 month, 2 weeks ago
I want to assign the WP User Id or User Name to a field on insert.Only registered users will be allowed to add records.What is the proper variable to assign?Or I need to use a trigger?
(@kimmyx)
Hi @jkacher,
To access and use the currently logged in users, you need to use the @wpda_wp_user_id variable.
@wpda_wp_user_id
You can read more about it here: https://docs.rad.wpdataaccess.com/wpda_wp_user_id.html
Hope that helps! Let us know if you have more questions.
You must be logged in to reply to this topic.