Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

* Remove members only option from dropdown #3147

Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions includes/compatibility/lifterlms.php
Original file line number Diff line number Diff line change
@@ -655,3 +655,15 @@ function pmpro_maybe_remove_lifterlms_lostpassword_url_filter() {
}
}
add_action( 'wp', 'pmpro_maybe_remove_lifterlms_lostpassword_url_filter' );

/**
* Remove Plan availability dropdown from Lifter's access plan settings.
*
* @return bool False to remove the dropdown, true to keep it.
* @since TBD
*/
function pmpro_llms_show_membership_settings_for_access_plans() {
return ! get_option( 'pmpro_lifter_streamline' );
}

add_filter( 'llms_show_membership_settings_for_access_plans', 'pmpro_llms_show_membership_settings_for_access_plans' );