is_private_profile

Description

This method checks if give user profile is private.

Usage

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

Parameters

$user_id

(numeric) (required) A user ID must be passed to check if the user profile is private

Returns

Returns true if user profile is private and false if user profile is public.

Examples

This example display a specific user’s name If his profile is public

<?php
um_fetch_user( 60 );
$is_private = $ultimatemember->user->is_private_profile( 60 );
if ( !$is_private ) {
echo 'User is public and his name is ' . um_user('display_name');
}
?>