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

2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
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.