bp_learndash_group_activity_is_on() function assumes Groups are enabled
-
A customer got an error when creating a new user (via PMPro checkout). A fatal error was being thrown on line 585 of includes/bp-learndash-functions.php because the groups_get_groupmeta() function was not defined.
I updated that bit of code to check for the function first.
if(function_exists('groups_get_groupmeta')) $bp_sensei_course_activity = groups_get_groupmeta( $group_id, 'group_extension_course_setting_activities' ); else $bp_sensei_course_activity = false;
Not sure if this is the best fix, but it fixed the issue for them.
Thanks!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘bp_learndash_group_activity_is_on() function assumes Groups are enabled’ is closed to new replies.