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: ''
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 ); }
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |