bp_nouveau_group_get_template_part( string $template = '' )

Load a single group template part

Description

Parameters

$template

(Optional) The template part to get (eg: activity, members...).

Default value: ''

Return

(string) HTML output.

Source

File: bp-templates/bp-nouveau/includes/groups/functions.php

997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
function bp_nouveau_group_get_template_part( $template = '' ) {
    $located = bp_nouveau_group_locate_template_part( $template );
 
    if ( false !== $located ) {
        $slug = str_replace( '.php', '', $located );
        $name = null;
 
        /**
         * Let plugins adding an action to bp_get_template_part get it from here.
         *
         * This is a variable hook that is dependent on the template part slug.
         *
         * @since BuddyPress 3.0.0
         *
         * @param string $slug Template part slug requested.
         * @param string $name Template part name requested.
         */
        do_action( 'get_template_part_' . $slug, $slug, $name );
 
        load_template( $located, true );
    }
 
    return $located;
}

Changelog

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.