Skip to content

Instantly share code, notes, and snippets.

@actual-saurabh
Last active September 2, 2018 13:39
Show Gist options
  • Save actual-saurabh/a140a16bce43f6496bbda69ec0f6e69c to your computer and use it in GitHub Desktop.
Save actual-saurabh/a140a16bce43f6496bbda69ec0f6e69c to your computer and use it in GitHub Desktop.
Remove LifterLMS Mailchimp Consent Feature
@blogjunkie
Copy link

You forgot the hook priority, should be:

remove_action( 'llms_registration_privacy', 'llms_mc_consent_form_field', 15 );
remove_action( 'lifterlms_after_update_fields', 'llms_mc_dashboard_consent_form_field', 15 );

@blogjunkie
Copy link

blogjunkie commented Sep 2, 2018

As of version 3.x you should use this instead:

add_filter( 'llms_mc_enable_consent', '__return_false' );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment