Skip to content

JetEngine extra Macros

Soczó edited this page Apr 2, 2024 · 9 revisions

WC Current User Purchased Products

Returns the ID of the products that the currently logged in user has purchased. Only calculates from completed orders. (With comma separation.)

Use in the Query Builder: Create a new Query in the Query builder. The Query Type should be Wc Product Query. In the general section, in Includes, select this macro: WC Current User Purchased Products

image

WC Membership Access Posts

(Only if you have Woo Membership plugin installed) https://woo.com/products/woocommerce-memberships/ Returns the ID of the posts to which the user has access. These are retrieved via the Woo Membership API. (With comma separation.)

Use in the Query Builder: Create a new Query in the Query builder. The Query Type should be Post Query. Navigate to the Post & Page section. In the Post In input, select this macro: WC Membership Access Posts In this Macro, you have to choose from which Membership you want the user to retrieve the available posts. image

Clone this wiki locally