How to check if user is verified with php code?
-
Hi I’m building my own theme,
now I’m using your plugin to show if users are verified or not.
So this is working, but since I’m not using the username on the single profile pages I’m not able to show the badge. I’m showing the first name and last name based on the custom profile fields.I’m editing the cover-image-header.php and I tought I was able to do this with the follow code
<?php if ( empty( get_user_meta( $bp_displayed_user_id, $bp_verified_member_admin->meta_box->meta_keys['verified'], true ) ) ) : ?> BADGE HERE <?php endif; ?>
but for some reason it is displaying for all the users. Looks like it is getting the date form the current logged in user.How to achieve this?
- The topic ‘How to check if user is verified with php code?’ is closed to new replies.