bp_profile_has_multiple_groups()
Check if there is more than one group of fields for the profile being edited.
Description Description
Return Return
(bool) True if there is more than one profile field group.
Source Source
File: bp-xprofile/bp-xprofile-template.php
function bp_profile_has_multiple_groups() { $has_multiple_groups = count( (array) bp_profile_get_field_groups() ) > 1; /** * Filters if there is more than one group of fields for the profile being edited. * * @since 2.1.0 * * @param bool $has_multiple_groups Whether or not there are multiple groups. */ return (bool) apply_filters( 'bp_profile_has_multiple_groups', $has_multiple_groups ); }
Changelog Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |