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_check_backcompat( string $template = '', string $template_name = '' )

Checks whether back compatibility is needed about xProfile loop’s signup arguments.


Parameters Parameters

$template

(string) (Optional) The located path for registration template.

Default value: ''

$template_name

(string) (Optional) The needed template name.

Default value: ''


Source Source

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

function _bp_xprofile_signup_check_backcompat( $template = '', $template_name = '' ) {
	if ( 'members/register.php' !== $template_name ) {
		return;
	}

	if ( 0 !== strpos( $template, buddypress()->theme_compat->theme->dir ) ) {
		add_filter( 'bp_after_has_profile_parse_args', '_bp_xprofile_signup_do_backcompat', 100 );
	}
}


Top ↑

Changelog 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.