bp_nouveau_signup_hook( string $when = '', string $prefix = '' )

Fire specific hooks into the register template

Description

Parameters

$when

(Optional) 'before' or 'after'

Default value: ''

$prefix

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

Default value: ''

Source

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

2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
function bp_nouveau_signup_hook( $when = '', $prefix = '' ) {
    $hook = array( 'bp' );
 
    if ( $when ) {
        $hook[] = $when;
    }
 
    if ( $prefix ) {
        if ( 'page' === $prefix ) {
            $hook[] = 'register';
        } elseif ( 'steps' === $prefix ) {
            $hook[] = 'signup';
        }
 
        $hook[] = $prefix;
    }
 
    if ( 'page' !== $prefix && 'steps' !== $prefix ) {
        $hook[] = 'fields';
    }
 
    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.