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
855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 | 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
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.