Last active
December 7, 2018 23:41
-
-
Save rcstr/b34503abe80f11290d2fce921f0cf67e to your computer and use it in GitHub Desktop.
Get users that have an active Subscription.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$roles = wcs_get_new_user_role_names( 'default_subscriber_role' ); | |
get_users( array( | |
'role__in' => array( | |
$roles['new'] | |
) | |
) ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment