bp_xprofile_get_settings_fields( array|string $args = '' )

Query all profile fields and their visibility data for display in settings.

Description

Parameters

$args

(array|string) (Optional) Array of args for the settings fields.

Default value: ''

Return

(bool)

Source

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

function bp_xprofile_get_settings_fields( $args = '' ) {

	// Parse the possible arguments.
	$r = bp_parse_args( $args, array(
		'user_id'                => bp_displayed_user_id(),
		'profile_group_id'       => false,
		'hide_empty_groups'      => false,
		'hide_empty_fields'      => false,
		'fetch_fields'           => true,
		'fetch_field_data'       => false,
		'fetch_visibility_level' => true,
		'exclude_groups'         => false,
		'exclude_fields'         => false
	), 'xprofile_get_settings_fields' );

	return bp_has_profile( $r );
}

Changelog

Changelog
Version Description
BuddyPress 2.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.