bp_view_profile_repeaters_print_group_html_start()

Open wrapper of repeater set – on View profile screen

Description

Source

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

function bp_view_profile_repeaters_print_group_html_start () {
    $group_id = bp_get_the_profile_group_id();
    $is_repeater_enabled = 'on' == BP_XProfile_Group::get_group_meta( $group_id, 'is_repeater_enabled' ) ? true : false;
    if ( $is_repeater_enabled ) {
        global $repeater_set_being_displayed;
        
        $current_field_id = bp_get_the_profile_field_id();
        $current_set_number = bp_xprofile_get_meta( $current_field_id, 'field', '_clone_number', true );
        
        if ( empty( $repeater_set_being_displayed ) ) {
            //start of first set
        } else if ( $repeater_set_being_displayed != $current_set_number  ) {
            //end of previous set
            echo "<tr class='repeater-separator'><td colspan='2'></td></tr>";
        }
        
        $repeater_set_being_displayed = $current_set_number;
    }
}

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.