Last active
March 26, 2019 16:45
-
-
Save actual-saurabh/12c9f30be88421604765b13029db2813 to your computer and use it in GitHub Desktop.
LifterLMS Social Learning Remove Stories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //don't copy-paste this line | |
// copy-paste from under here--> | |
// complete | |
remove_action( 'lifterlms_course_completed', array( 'LLMS_SL_Stories', 'complete' ), 25, 2 ); | |
// earn achievement( badges, certificates, etc) | |
remove_action( 'llms_user_earned_achievement', array( 'LLMS_SL_Stories', 'achievement' ), 25, 3 ); | |
// enroll in course | |
remove_action( 'llms_user_enrolled_in_course', array( 'LLMS_SL_Stories', 'enrollment' ), 25, 2 ); | |
//enroll in membership | |
remove_action( 'llms_user_added_to_membership_level', array( 'LLMS_SL_Stories', 'enrollment' ), 25, 2 ); | |
// join (register) | |
remove_action( 'lifterlms_user_registered', array( 'LLMS_SL_Stories', 'join' ), 25, 1 ); | |
// pass | |
remove_action( 'lifterlms_quiz_passed', array( 'LLMS_SL_Stories', 'pass' ), 25, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment