Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Get all xprofile select field options

@henrywright

Moderator

Hi @mlcapulong

If you know the field ID, you can do this:

$field = new BP_XProfile_Field( $field_id );
$children = $field->get_children();
if ( $children ) {
    foreach ( $children as $child ) {
        // Do something here.
        // var_dump( $child );
    }
}
Skip to toolbar