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
733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 | 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.