do_action( 'bp_init' )

Member navigation tabs creation start

Description

Member Navigation tab only setup on member page request so for fetch member’s tabs we need set member url as REQUEST_URI forcefully and Once our job done switch back to original url. With below process BuddyPress state might be change so we need to rest it once our job done.

After set Member url forcefully we need to re-execute core hook which load component and setup tabs for given group.

Source

File: bp-members/classes/class-bp-rest-members-details-endpoint.php

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.