Hello, I would like to use WPDatatable to add a filtered list to a website (customer portal). I am already filtering the list by a property directly via the shortcode:
[wpdatatable id=2 table_view=regular var1=”Getting Started in Microsoft Excel”]
Now I would also like the list to be filtered according to the membership plan slugs of the current user. I use Woocommerce Memberships (https://woocommerce.com/documentation/products/extensions/woocommerce-memberships/).
I would like to enter the membership plan slugs in the shortcode, which are then all displayed if the logged in user has an active membership or a trail membership of the corresponding plan.
Can you help me with how I can integrate the slugs into the filter or shortcode? With the following function it should somehow be possible to display the current (active) memberships and trail memberships in the frontend (and thus also in the shortcode?).
#https://woocommerce.com/document/woocommerce-memberships-function-reference/#section-7