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

Fire specific hooks into the register template

Description

Parameters

$when

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

Default value: ''

$prefix

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

Default value: ''

Source

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

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.