I would like to know, if it's possible to use custom learning paths, when buddypress activity stream is deactivated.
In my platform I don't want users to write comments or see everything in activity stream.
Thanks
@Lmsfriend,
Apologies for the delayed response here..
But this is not possible. In custom Learning Path we are fetching the Buddypress activities as an option which gives you choices to select steps. If activity stream will be disabled then it is not possible to fetch those BuddyPress Activities.
Thanks, but then I would like you to check the following:
I would like to activate the activity stream and use CLP addon, but then hide the activity tab on students profile page & hide activity tab on course pages for students.
I already tried WP admin – WPLMS – BuddyPress – Profile Activity Tab = Admins only,
but students can still see their activity.
Is it possible to hide activity tabs via code?
@lmsfriend
Yes this is possible. Please paste the given code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php
add_action('bp_setup_nav','bp_remove_activity_tab_from_student_profile',999);
function bp_remove_activity_tab_from_student_profile() {
if(is_user_logged_in() && !current_user_can('edit_posts')){
bp_core_remove_nav_item('activity');
}
}
Thanks this worked so far.
Thread can be closed.
@LMSFriend
Thanks for confirming. Closing the topic