Hi,
Is it possible to create a new shortcode suppose, In our certificate template we awarded students qualification with Distinction or Merit. Like, if any student got more then 70 mark he or she will be awarded this qualification with Distinction and If less then 60 marks award this qualification with Merit.
So, here something logic required, that's why we want to create a shortcode similar [certificate_code] etc. we will pay for this. just let us confirm is it possible or not.
please find the attached our certificate template sample. https://prnt.sc/iin5c4
Thanks.
Please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
add_shortcode('certificate_dm',function($atts,$content){
if(!empty($_GET) && !empty($_GET['c']) && !empty($_GET['u'])){
$marks = get_post_meta($_GET['c'],$_GET['u'],true);
if($marks >= 70){
return 'Distinction';
}else{
return 'Merit';
}
}else{
return '[certificate_dm]';
}
});