is_approved

Description

This method can be used to determine If a certain user is approved or not.

Usage

<?php $ultimatemember->user->is_approved( $user_id ); ?>

Parameters

$user_id

(numeric) (required) The user ID to check approval status for

Returns

True if user is approved and false if user is not approved.

Examples

Do something If a user’s membership is approved

<?php
if ( $ultimatemember->user->is_approved( 55 ) {
// User account is approved
} else {
// User account is not approved
}
?>