bp_nouveau_member_get_template_part( string $template = '' )
Load a single member template part
Description
Parameters
- $template
-
(string) (Optional) The template part to get (eg: activity, groups...).
Default value: ''
Return
(string) HTML output.
Source
File: bp-templates/bp-nouveau/includes/members/functions.php
function bp_nouveau_member_get_template_part( $template = '' ) { $located = bp_nouveau_member_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. * * @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
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.