bp_nouveau_hook( array $pieces = array() )

Fire specific hooks at various places of templates


Parameters Parameters

$pieces

(array) (Optional) The list of terms of the hook to join.

Default value: array()


Source 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 3.0.0
	 */
	do_action( $hook );
}


Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.