data for current user
-
Hi
I was lookign for a way to display the data that belongs to the current user.
i came across this article
https://wpdatatables.com/documentation/front-end-editing/allowing-users-to-edit-only-their-own-data/
but then I realized that if i enable this, ‘enable server-side processing’ is automatically turned on, which I do not wish to. Plus I do not want give edit access to the user.
and i saw another method using %CURRENT_USER_ID%
but when i add the line where user_id = %CURRENT_USER_ID% then I get an error saying ‘No data fetched!, If you are trying to save table …”
https://wpdatatables.com/documentation/table-features/using-placeholders/
FYI, I am using SQL query for the data source type.
so what is the best way to filter data belongs to the current logged in user?
Please advise
Thank you
- The topic ‘data for current user’ is closed to new replies.