Description
This function checks if user exists in your system or not.
Usage
1 2 3 4 5 6 7 |
<?php $userpro->user_exists( $user_id ); ?> |
Parameters
- $user_id – The user’s ID you want to check If it exists or not
Returns
Return true if user exists, and false if user does not exist.
Examples
1 2 3 4 5 6 7 8 9 10 |
<?php if ( $userpro->user_exists( 18 ) ) { // Check if user (18) exists // user exists } else { // user does not exist } ?> |
Leave A Comment?