bp_ps_xprofile_options( $field_id )
Returns array of BuddyBoss Profile Search profile options.
Description
Source
File: bp-core/profile-search/bps-xprofile.php
294 295 296 297 298 299 300 301 302 303 304 305 306 | function bp_ps_xprofile_options ( $field_id ) { $field = new BP_XProfile_Field ( $field_id ); if ( empty ( $field ->id)) return array (); $options = array (); $rows = $field ->get_children (); if ( is_array ( $rows )) foreach ( $rows as $row ) $options [ stripslashes (trim ( $row ->name))] = stripslashes (trim ( $row ->name)); return $options ; } |
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.