Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php if (wcs_user_has_subscription('', 10, 'active')) : // Replace 10 by WooCommerce Subscription Product ID ?>
<?php _e('Hello World', 'textdomain'); ?>
<?php else : ?>
<p><?php _e('Sorry you have to be an active subscriber to get access.', 'textdomain'); ?></p>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.