I am Using WooCommerce Subscribtion Plugin and I want to check is current user has an active and paid subscription on his acccount to put simple if/else in my PHP file like:
if ($subscription = 'active' && is_user_logged_in() ) {
echo "Hello";
} else {
echo "Goodbye";
}
Of course, this code is just a representation of what I want to achieve. How can I do this?