Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Different profiles for different user types

@nuprn1

Participant

one quick way would be to hook on

apply_filters( ‘bp_located_template’, locate_template( (array) $filtered_templates, false ), $filtered_templates )

and perform your check for whatever user type method you have implement and check for members/single/home.php or whatever

have a look at function bp_core_do_catch_uri() {

otherwise depending if xprofile is installed – various filter names are used for the profile pages

apply_filters( ‘bp_core_template_display_profile’, ‘members/single/home’ )
or
apply_filters( ‘xprofile_template_display_profile’, ‘members/single/home’ )

as for changing up the members slug on a niche level – i would look over function bp_core_set_uri_globals() { on how it works

*edit – apparently code ticks no longer work… ugh.

Skip to toolbar