Title: data for current user
Last modified: March 7, 2024

---

# data for current user

 *  Resolved [futureyoon](https://wordpress.org/support/users/futureyoon/)
 * (@futureyoon)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/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/](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/](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
    -  This topic was modified 2 years, 3 months ago by [futureyoon](https://wordpress.org/support/users/futureyoon/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [futureyoon](https://wordpress.org/support/users/futureyoon/)
 * (@futureyoon)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/data-for-current-user/#post-17485485)
 * I figured out that I should add “**%CURRENT_USER_ID%**” in the filter from the
   column.
 * but it still leaves one question. I see that the filter has to be showing up 
   in order for this **%CURRENT_USER_ID%** filter to work, that means, a user can
   change the user id to view other user’s data…
 * Hmm… Please kindly advise what is the best to way to show the data only belongs
   to the current logged in user.
 * Thank you
 *  Plugin Author [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * (@wpdatatables)
 * [2 years, 2 months ago](https://wordpress.org/support/topic/data-for-current-user/#post-17490856)
 * Hello,
   Apology for replying so late to this question.You will be able to use 
   an easy CSS solution to hide that Filter;But since you’re using the Premium version
   of the plugin, please open a ticket on our [main Support platform here](https://tmsplugins.ticksy.com/),
 *  and one of our Agents will respond as quickly as possible to provide you with
   the solution.
   You can just send them the link to this correspondence and they
   will send you the workaround right away.
 * If you don’t have a licence (or if it expired), please open a [pre-purchase ticket](https://tmsplugins.ticksy.com/submit/#100010481)
   which doesn’t require a purchase code.
 * Premium products are not supported in these forums, as per [this comment](https://wordpress.org/support/topic/error-when-not-logged-into-wordpress-backend/#post-15050671)
   by WordPress.org moderators.
 * Thank you for understanding. 
 * Kind regards.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘data for current user’ is closed to new replies.

 * ![](https://ps.w.org/wpdatatables/assets/icon-128x128.gif?rev=3010404)
 * [wpDataTables - WordPress Data Table, Dynamic Tables & Table Charts Plugin](https://wordpress.org/plugins/wpdatatables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wpdatatables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wpdatatables/)
 * [Active Topics](https://wordpress.org/support/plugin/wpdatatables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wpdatatables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wpdatatables/reviews/)

## Tags

 * [current user](https://wordpress.org/support/topic-tag/current-user/)

 * 3 replies
 * 2 participants
 * Last reply from: [wpDataTables](https://wordpress.org/support/users/wpdatatables/)
 * Last activity: [2 years, 2 months ago](https://wordpress.org/support/topic/data-for-current-user/#post-17490856)
 * Status: resolved