bp_nouveau_group_hook( string $when = '', string $suffix = '' )
Fire specific hooks into the single groups templates.
Description
Parameters
- $when
-
(Optional) Either '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/groups/template-tags.php
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | function bp_nouveau_group_hook( $when = '' , $suffix = '' ) { $hook = array ( 'bp' ); if ( $when ) { $hook [] = $when ; } // It's a group hook $hook [] = 'group' ; if ( $suffix ) { $hook [] = $suffix ; } bp_nouveau_hook( $hook ); } |
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.