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

Fire specific hooks into the private messages template.


Parameters Parameters

$when

(string) (Optional) Either 'before' or 'after'.

Default value: ''

$suffix

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

Default value: ''


Source Source

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

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 );
}


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.