<?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