bp_nouveau_member_template_part()
Load the appropriate content for the single member pages
Description
Source
File: bp-templates/bp-nouveau/includes/members/template-tags.php
function bp_nouveau_member_template_part() { /** * Fires before the display of member body content. * * @since BuddyPress 1.2.0 */ do_action( 'bp_before_member_body' ); if ( bp_is_user_front() ) { bp_displayed_user_front_template_part(); } else { $template = 'plugins'; if ( bp_is_user_activity() ) { $template = 'activity'; } elseif ( bp_is_user_blogs() ) { $template = 'blogs'; } elseif ( bp_is_user_friends() ) { $template = 'friends'; } elseif ( bp_is_user_groups() ) { $template = 'groups'; } elseif ( bp_is_user_messages() ) { $template = 'messages'; } elseif ( bp_is_user_profile() ) { $template = 'profile'; } elseif ( bp_is_user_notifications() ) { $template = 'notifications'; } elseif ( bp_is_user_settings() ) { $template = 'settings'; } elseif ( bp_is_user_invites() ) { $template = 'invites'; } elseif ( bp_is_user_media() ) { $template = 'media'; } bp_nouveau_member_get_template_part( $template ); } /** * Fires after the display of member body content. * * @since BuddyPress 1.2.0 */ do_action( 'bp_after_member_body' ); }
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
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.