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

Fire specific hooks into the register template


Description Description


Parameters Parameters

$when

(Optional) 'before' or 'after'

Default value: ''

$prefix

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

Default value: ''


Top ↑

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

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.