bp_nouveau_has_signup_xprofile_fields( $do_loop = false )

Checks whether there are signup profile fields to display.

Parameters Parameters

(bool) (Required) Whether to init an xProfile loop.

Top ↑

Return Return

(bool) True if there are signup profile fields to display. False otherwise.

Source Source

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

function bp_nouveau_has_signup_xprofile_fields( $do_loop = false ) {
	if ( ! $do_loop ) {
		$signup_fields = (array) bp_xprofile_get_signup_field_ids();
		return 1 <= count( $signup_fields );

	return bp_has_profile( bp_xprofile_signup_args() );

Top ↑

Changelog Changelog

Version Description
8.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.