BP_XProfile_Data_Template::has_fields()
Whether or not the loop has fields.
Description
Return
(bool)
Source
File: bp-xprofile/classes/class-bp-xprofile-data-template.php
public function has_fields() { $has_data = false; for ( $i = 0, $count = count( $this->group->fields ); $i < $count; ++$i ) { $field = &$this->group->fields[ $i ]; if ( ! empty( $field->data ) && ( $field->data->value != null ) ) { $has_data = true; } } return $has_data; }
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.