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

Fire specific hooks into the activate template

Description

Parameters

$when

(Optional) 'before' or 'after'

Default value: ''

$prefix

(Required) Use it to add terms before the hook name

Source

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

function bp_nouveau_activation_hook( $when = '', $suffix = '' ) {
	$hook = array( 'bp' );

	if ( $when ) {
		$hook[] = $when;
	}

	$hook[] = 'activate';

	if ( $suffix ) {
		$hook[] = $suffix;
	}

	if ( 'page' === $suffix ) {
		$hook[2] = 'activation';
	}

	bp_nouveau_hook( $hook );
}

Changelog

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.