bp_field_has_public_data()

Whether or not the XProfile field has public data to display.

Description

Return

(bool)

Source

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

function bp_field_has_public_data() {
	global $profile_template;

	/**
	 * Filters whether or not the XProfile field has public data to display.
	 *
	 * @since BuddyPress 2.8.0
	 *
	 * @param bool   $value            Whether or not there is public data to display.
	 * @param object $profile_template Profile template object.
	 * @param string $value            Profile field being displayed.
	 * @param string $value            Profile field ID being displayed.
	 */
	return apply_filters( 'bp_field_has_public_data', ( ! empty( $profile_template->field_has_data ) ), $profile_template, $profile_template->field, $profile_template->field->id );
}

Changelog

Changelog
Version Description
BuddyPress 1.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.