um_access_profile

The Ultimate Member um access profile function.

Description

um_access_profile( $user_id ); 

Parameters (1)

0. $user_id
The user id.

Usage

  1. if ( !function_exists( 'um_access_profile' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ultimate-member/core/um-actions-access.php'; 
  3.  
  4. // The user id. 
  5. $user_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = um_access_profile($user_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/core/um-actions-access.php  
  1. function um_access_profile( $user_id ) { 
  2.  
  3. if( ! um_is_myprofile() && um_is_core_page('user') && ! current_user_can('edit_users') ) { 
  4.  
  5. um_fetch_user( $user_id ); 
  6.  
  7. if( ! in_array(um_user'account_status'), array('approved') ) ) { 
  8.  
  9.  
  10.