buddypress_profile_endpoints_bc()

For old users: explicitly limit by default the buddypress profile endpoints to those existing prior to 6.3.0.


Return Return

(bool) True if it needs to run again, false otherwise.


Top ↑

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;

}

Top ↑

Changelog Changelog

Changelog
Version Description
6.3.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.