- This topic is empty.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
- You must be logged in to reply to this topic.
› Forums › WooCommerce Plugins › How to Conditionally Display Content Based on Active Subscription Status
Hello team,
I’m using the Subscriptions for WooCommerce plugin, and I would like to implement functionality where I can conditionally display content based on whether a user has an active subscription. any hooks for this?
Specifically, I want to:
I’ve reviewed the plugin’s code and noticed that the following is being used in some areas:
if ( ! empty( $wps_subscriptions ) && is_array( $wps_subscriptions ) ) {
// Conditionally display…
}