bp_get_profile_field_set_count( type $field_group_id, type $user_id )
Return total number of field sets.
Description
Parameters
- $field_group_id
-
(Required)
- $user_id
-
(Required)
Return
(type)
Source
File: bp-xprofile/bp-xprofile-repeaters.php
function bp_get_profile_field_set_count ( $field_group_id, $user_id ) { $count = get_user_meta( $user_id, 'field_set_count_' . $field_group_id, true ); return $count > 0 ? $count : 1; }
Changelog
Version | Description |
---|---|
BuddyBoss 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.