Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @olivvv59

    You can try adding this code snippet to your theme/child-theme’s functions.php file or use the Code Snippet plugin to run the code:

    add_filter("um_user_shortcode_filter__profile_photo","um_user_shortcode_filter__profile_photo", 10, 3);
    function um_user_shortcode_filter__profile_photo( $meta_value,  $raw_meta_value, $user_id ){
    
       if( empty( $meta_value ) ) {
         return um_get_default_avatar_uri();
       }
     
       return  UM()->uploader()->get_upload_user_base_url( $user_id )."/".$meta_value; 
    }

    Regards,

    Thread Starter olivvv59

    (@olivvv59)

    great !!

    it works perfectly !!

    thanks a lot
    Olivier

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Thanks for letting us know.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Default Profil Picture’ is closed to new replies.