Certificate student avatar shortcode

Please add the given code in your wplms-customizer.php file in wplms-customizer plugin  :

if (!function_exists('vibe_certificate_student_avatar')) {
    function vibe_certificate_student_avatar( $atts, $content = null ) {
            $id=$_GET['u'];
            if(isset($id) && $id){
              return  get_avatar( $id ); 
            }
                
            else
                return '[certificate_student_avatar]';
    }
   add_shortcode('certificate_student_avatar', 'vibe_certificate_student_avatar');
}

Use shortcode [certificate_student_avatar]

Was this article helpful?

2 Comments

  1. Clayton

    The student avatar appears and disappears immediately

  2. Any image which disappears immediately in the certificate, make sure the images are not loaded from a CDN.

Leave A Comment?