bp_nouveau_member_hook( string $when = '', string $suffix = '' )

Fire specific hooks into the single members templates

Description

Parameters

$when

(Optional) 'before' or 'after'

Default value: ''

$suffix

(Optional) Use it to add terms at the end of the hook name

Default value: ''

Source

File: bp-templates/bp-nouveau/includes/members/template-tags.php

92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
function bp_nouveau_member_hook( $when = '', $suffix = '' ) {
    $hook = array( 'bp' );
 
    if ( $when ) {
        $hook[] = $when;
    }
 
    // It's a member hook
    $hook[] = 'member';
 
    if ( $suffix ) {
        $hook[] = $suffix;
    }
 
    bp_nouveau_hook( $hook );
}

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.