bp_set_profile_field_set_count( type $field_group_id, type $user_id, type $count )

Set maximum field set allowed.

Description

Parameters

$field_group_id

(type) (Required)

$user_id

(type) (Required)

$count

(type) (Required)

Return

(type)

Source

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

function bp_set_profile_field_set_count ( $field_group_id, $user_id, $count ) {
    $max = bp_profile_field_set_max_cap();
    $count = $count <= $max ? $count : $max;
    
    return update_user_meta( $user_id, 'field_set_count_' . $field_group_id, $count );
}

Changelog

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.