[memb_has_purchased_product]

Description

Checks wc_customer_bought_product() for each listed product ID; the content shows when at least one was purchased by the current user. Useful for owners-only content, upgrade prompts, or support links.

Shortcode Examples

[memb_has_purchased_product product_id="42"] owners-only content [/memb_has_purchased_product]

Shortcode Parameters

product_id

Comma-separated product IDs to check purchase history for. Default: ''.

txtfmt

Text format applied to the output.

capture

Output capture mode.

Shortcode Attributes

Attribute Value
Conditional Yes
Nestable Yes
Accepts formatting Yes