wpDataTables does not currently include a built-in feature for restricting table visibility on the front-end by user or role — but it can be achieved with a simple workaround using membership or access control plugins.
You can use any membership plugin (such as MemberPress, Restrict Content Pro, or WP-Members) to control visibility of pages or sections where your tables are embedded.
Create a custom user role, e.g., VIP, using a plugin like User Role Editor.
Create a dedicated page for each user group or role.
Embed your wpDataTable shortcode on that page (e.g., [wpdatatable id=1]
).
Use the membership plugin to restrict access to that page based on the user role.
This ensures each user sees only the tables and content meant for them.
This is considered a custom implementation and is not officially supported by our team, but many users have successfully implemented it.
If you'd like to see built-in support for front-end table visibility control by user or role, you can submit the idea on our Suggestions Page: https://features.wpdatatables.com
The more votes a feature receives, the more likely it is to be prioritized by our development team.