abhishekspatil
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
@wsp-kk : Update to my earlier comment:
So, the solution that worked for me:
Adding below code in wp-contents -> theme -> theme name -> functions.php/*
Fix Name: Custom Fixes for Tutor LMS and hCaptcha
Description: Ensures compatibility between Tutor LMS and hCaptcha.
Version: 1.0
*/
add_filter('login_form_middle', function($content, $args = []) {
if (!is_array($args)) {
$args = [];
}
return $content;
}, 5, 2);And update wp-contents -> plugins -> tutor -> templates -> login-form.php
Change line number 70 (double check)
fromapply_filters( 'login_form_middle', '', '');
toapply_filters( 'login_form_middle', '', []);
NOTE: These changes might be overridden once you update the plugins.@wsp-kk: Thanks for initiating this thread.. I also faced this issue. I did some code analysis and found the root cause. To get to the point, adding the snippet below to my “theme” functions.php worked.
You can get there by -> wp-contents -> theme -> theme name -> functions.php/*
Fix Name: Custom Fixes for Tutor LMS and hCaptcha
Description: Ensures compatibility between Tutor LMS and hCaptcha.
Version: 1.0
*/
add_filter('login_form_middle', function($content, $args = []) {
if (!is_array($args)) {
$args = [];
}
return $content;
}, 5, 2);
Viewing 2 replies - 1 through 2 (of 2 total)