Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/19/2020 09:21:19 PM (3 years ago)
Author:
imath
Message:

Introduce a new template tag to list a user's member types

Just like Group Types can be listed into the displayed Group's header thanks to a specific template tag, Member types now have their own template tag bp_member_type_list() to do the same into the displayed user's header.

BP Nouveau is using this tag. Its header templates and styles has been updated to optimize the output of this list.

By default Member Types will not be displayed, their corresponding object will need to have their show_in_list property set to true.

Fixes #8394

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r12791 r12797  
    32333233                    }
    32343234                }
     3235
     3236                if ( ! empty( $db_types[ $type_name ]->has_directory ) && empty( $db_types[ $type_name ]->directory_slug ) ) {
     3237                    $db_types[ $type_name ]->directory_slug = $term->slug;
     3238                }
    32353239            }
    32363240        }
Note: See TracChangeset for help on using the changeset viewer.