Skip to content

Instantly share code, notes, and snippets.

@actual-saurabh
Last active March 26, 2019 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save actual-saurabh/12c9f30be88421604765b13029db2813 to your computer and use it in GitHub Desktop.
Save actual-saurabh/12c9f30be88421604765b13029db2813 to your computer and use it in GitHub Desktop.
LifterLMS Social Learning Remove Stories
<?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