I am currently listing posts based on user role, with the following query:
$ids = get_users( array('role' => 'author' ,'fields' => 'ID') ); $args = array( 'author' => implode(',', $ids), 'orderby' => 'date', 'order' => 'ASC', );
Would it be possible to also limit the posts based on the membership level of the author using Paid Membership Pro? The plugin has the following hook to check user level:
But I'm not sure how to incorporate it into the above query (if possible)?