Only paid member can do comment.
-
Hi,
How to check with extra Condition i mean I need to do below user can do comment and login.
$user = new WP_User( $user_id );
if ( ! empty( $user->roles ) && is_array( $user->roles ) && in_array( 'Some_role', $user->roles ) && is_memberbership_active() ) { return true; }
In short i need to check with another plugin like membership, So if user have role Subscriber and and membershipActive so if both conditions true then and then they can do login
Could you please advice.
Thanks
make
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Only paid member can do comment.’ is closed to new replies.