bp_nouveau_messages_hook( string $when = '', string $suffix = '' )
Fire specific hooks into the private messages template.
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/messages/template-tags.php
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | function bp_nouveau_messages_hook( $when = '' , $suffix = '' ) { $hook = array ( 'bp' ); if ( $when ) { $hook [] = $when ; } // It's a message hook $hook [] = 'message' ; if ( $suffix ) { if ( 'compose_content' === $suffix ) { $hook [2] = 'messages' ; } $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.