arm_change_user_detail_before_display_in_profile_and_directory

This Filter provides access to modify users detail before displaying it in profile or directory templates front side.

Hook Type: Filter
Usage:
add_filter('arm_change_user_detail_before_display_in_profile_and_directory', 'your_function', 10, 2);
function your_function($users, $args) {
    //$users Array of Users with details.
    //$args Shortcode Arguments.
    if ($args['type'] == 'directory') {
        //Filter Users Detail Array
    }
    return $users;
}
Parameters:
$users
Array of Users with details
$args
Shortcode Arguments