xprofile_ajax_reorder_field_groups()
Handles the reordering of field groups.
Description
Source
File: bp-xprofile/bp-xprofile-admin.php
748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 | function xprofile_ajax_reorder_field_groups() { // Check the nonce. check_admin_referer( 'bp_reorder_groups' , '_wpnonce_reorder_groups' ); if ( empty ( $_POST [ 'group_order' ] ) ) { return false; } parse_str ( $_POST [ 'group_order' ], $order ); foreach ( ( array ) $order [ 'group' ] as $position => $field_group_id ) { xprofile_update_field_group_position( (int) $field_group_id , (int) $position ); } } |
Changelog
Version | Description |
---|---|
BuddyPress 1.5.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.