um_profile_can_view_main

Hook type

Filter

Description

Check user can view profile

Parameters

$view

(bool) Can view?

$user_id

(int) User profile ID

Usage

<?php add_filter( 'um_profile_can_view_main', 'function_name', 10, 2 ); ?>

Examples

<?php
add_filter( 'um_profile_can_view_main', 'my_profile_can_view_main', 10, 2 );
function my_profile_can_view_main( $view, $user_id ) {
    // your code here
return $view;
}
?>

Change Log

Since: 2.0

Source

um_profile_can_view_main is located in includes/core/um-actions-profile.php::line 39