buddypress_profile_endpoints_bc()
For old users: explicitly limit by default the buddypress profile endpoints to those existing prior to 6.3.0.
Contents
Return Return
(bool) True if it needs to run again, false otherwise.
Source Source
File: includes/functions/updates/llms-functions-updates-630.php
function buddypress_profile_endpoints_bc() { if ( ! llms_parse_bool( get_option( 'llms_integration_buddypress_enabled', 'no' ) ) ) { return; } update_option( 'llms_integration_buddypress_profile_endpoints', array( 'view-courses', 'view-memberships', 'view-achievements', 'view-certificates', ) ); return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
6.3.0 | Introduced. |