bp_nouveau_hook( array $pieces = array() )
Fire specific hooks at various places of templates
Description
Parameters
- $pieces
-
(Optional) The list of terms of the hook to join.
Default value: array()
Source
File: bp-templates/bp-nouveau/includes/template-tags.php
function bp_nouveau_hook( $pieces = array() ) {
if ( ! $pieces ) {
return;
}
$bp_prefix = reset( $pieces );
if ( 'bp' !== $bp_prefix ) {
array_unshift( $pieces, 'bp' );
}
$hook = join( '_', $pieces );
/**
* Fires inside the `bp_nouveau_hook()` function.
*
* @since BuddyPress 3.0.0
*/
do_action( $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.