bp_field_data_attribute( $attribute = false )

Output the data attribute for a field.

Description

Parameters

$class

(mixed) (Required) Extra data to append to data attribute. Pass mutiple data names as an array or space-delimited string.

Source

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

function bp_field_data_attribute( $attribute = false ) {
	echo bp_get_field_data_attribute( $attribute );
}

Changelog

Changelog
Version Description
BuddyBoss 1.1.6 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.