Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

_bp_xprofile_signup_do_backcompat( array $args = array() )

Provides Signup fields argument back compatibility for template overrides.

Parameters Parameters


(array) (Optional) The xProfile loop's signup arguments.

Default value: array()

Top ↑

Return Return

(array) The xProfile loop's signup arguments.

Source Source

File: bp-xprofile/bp-xprofile-filters.php

function _bp_xprofile_signup_do_backcompat( $args = array() ) {
	$expected_args = bp_xprofile_signup_args();
	$needed_args   = array_intersect_key( $args, $expected_args );

	if ( 1 === $args['profile_group_id'] || array_diff_key( $expected_args, $needed_args ) ) {
		_doing_it_wrong( 'bp_has_profile()', __( 'The argument of this function into your custom `members/register.php` template should be bp_xprofile_signup_args()', 'buddypress' ), '8.0.0' );
		$args = $expected_args;

	return $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.