WooCommerce Memberships: Quickly Find Out If A User Has Memberships

WooCommerce Memberships: Quickly Find Out If A User Has Memberships

Here is a quick tip to help find out if a particular user has any memberships. You can drop this function into your custom plugin or theme’s functions.php file

In your code, you would use it like this:

Published by

Yojance Rabelo

To me, WordPress is a system to which versatility and power come naturally. Over the last thirteen years of my life, I have seen WordPress evolve from a simple blogging platform into the leading CMS that powers more than 27% of the Internet. My experience is broad, ranging all the way from writing WordPress plugins to creating WordPress themes based on PSD files. I am a master of developing and deploying membership sites powered by WooCommerce, WooCommerce Memberships, and WooCommerce Subscriptions.