Changeset 8819 for trunk/src/bp-xprofile/bp-xprofile-template.php
- Timestamp:
- 08/13/2014 12:30:12 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-template.php
r8785 r8819 313 313 314 314 return substr( $field_ids, 0, -1 ); 315 } 316 317 /** 318 * Output a comma-separated list of field IDs that are to be submitted on profile edit. 319 * 320 * @since BuddyPress (2.1.0) 321 */ 322 function bp_the_profile_field_ids() { 323 echo bp_get_the_profile_field_ids(); 324 } 325 /** 326 * Generate a comma-separated list of field IDs that are to be submitted on profile edit. 327 * 328 * @since BuddyPress (2.1.0) 329 * 330 * @return string 331 */ 332 function bp_get_the_profile_field_ids() { 333 global $profile_template; 334 335 $field_ids = array(); 336 foreach ( $profile_template->groups as $group ) { 337 $field_ids = array_merge( $field_ids, wp_list_pluck( $group->fields, 'id' ) ); 338 } 339 340 $field_ids = implode( ',', wp_parse_id_list( $field_ids ) ); 341 342 return apply_filters( 'bp_get_tthe_profile_field_ids', $field_ids ); 315 343 } 316 344
Note: See TracChangeset
for help on using the changeset viewer.