Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/10/2014 08:33:24 PM (10 years ago)
Author:
boonebgorges
Message:

Introduce bp_xprofile_get_groups() procedural wrapper for BP_XProfile_Group::get()

This wrapper includes a filter on the return values, so that plugin authors can
manipulate data programatically.

Also includes some documentation improvements, and implements new function
throughout BP.

See #5657

Props tw2113

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-xprofile/bp-xprofile-admin.php

    r8705 r8785  
    3737    $type = preg_replace( '|[^a-z]|i', '', $type );
    3838
    39     $groups = BP_XProfile_Group::get( array(
     39    $groups = bp_xprofile_get_groups( array(
    4040        'fetch_fields' => true
    4141    ) );
     
    288288                do_action( 'xprofile_fields_saved_field', $field );
    289289
    290                 $groups = BP_XProfile_Group::get();
     290                $groups = bp_xprofile_get_groups();
    291291                xprofile_admin( $message, $type );
    292292            }
Note: See TracChangeset for help on using the changeset viewer.