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

Fire specific hooks into the activate template


Description Description


Parameters Parameters

$when

(Optional) 'before' or 'after'

Default value: ''

$prefix

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


Top ↑

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

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.