Course page social sharing and seo fix with yoast

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

add_Action('init','wplms_course_yoast_Seo_fix');
function wplms_course_yoast_Seo_fix(){
  if(function_exists('wpseo_frontend_head_init')){
    if(is_singular('course')){
      add_action( 'template_redirect', 'wpseo_frontend_head_init', 1);
    }
  }
}

 

Leave a Reply

Your email address will not be published. Required fields are marked *