This is one of the things you won’t find in the docs, but only in the source. The source code contains only one usage of this variable. This is in bp-xprofile-template.php line 493.
// First, check to see whether the user-entered value matches
if ( in_array( $allowed_options, (array) $option_values ) ) {
$selected = ' selected="selected"';
}
// Then, if the user has not provided a value, check for defaults
if ( !is_array( $original_option_values ) && empty( $option_values ) && $options[$k]->is_default_option ) {
$selected = ' selected="selected"';
}
As you can see, it is used to pre-select an option in the case the user hasn’t supplied a value yet.
Related Posts:
- How to get a buddypress user profile link and a certain user profile field for the current post author?
- How to Modify/Change a Buddypress/WordPress Account Activation Process
- Add BuddyPress Profile Menu Item [closed]
- BuddyPress: Adding a new tab in groups
- What’s the easiest way to change the default landing page for BuddyPress groups?
- How to re-enable admin bar with Buddypress active? (BP bar removed) [closed]
- How to ensure buddypress custome profile field is unique
- Posting Photos and Other Attachments in a BuddyPress Forum?
- BuddyPress: How to get info of users filtered by some x-profile data? [closed]
- How to check if the current page is a “personal activity”-page in buddypress? [closed]
- Buddypress get member meta info for specific user ID [closed]
- Redirect after registration in BuddyPress [closed]
- changing the signup button url in WPMU/Buddypress
- Buddypress profile pictures sync across WordPress Multisite Network
- Exclude User from Activity Stream in BuddyPress?
- Conditional based on the User Role of the Current Profile the user is viewing – BuddyPress [closed]
- BuddyPress | How to merge the “setting” & “profile” pages into one page? [closed]
- Upload files into buddypress profiles [closed]
- Is it possible to have a network of BuddyPress sites, a-la WordPress MU, with single-sign-on? [closed]
- Is there a plugin or something that allows you to use BuddyPress without having to create a BuddyPress-ready theme?
- BuddyPress – Get a List of Defined xProfile fields [closed]
- How to create a theme specific translation of buddypress? [closed]
- Remove post content from buddypress activity [closed]
- Buddypress Registartion template [closed]
- Does BuddyPress Have An Action Hook for remove_user? [closed]
- Can you use the buddypress profile system without installing the whole of buddypress? [closed]
- How to auto-accept a friend-request in buddypress based on user meta
- Best practices for securing a Buddypress installation?
- After Upgrade to Buddypress 1.2.6 from 1.2.5.2 , admin bar area displayed incorrectly for guest-visitors
- switch_to_blog( ) content disappears after load
- Buddypress bp_has_members function custom search with meta query [closed]
- Show Specific Buddypress Group Activity Stream in page template
- Buddypress, BBPress – deqeue bp, bbp css and get group member count
- buddypress activity social share
- Wrong path when adding custom tab in BuddyPress [closed]
- Empty “Forums” page BuddyPress site wide forums – bbPress [closed]
- Can I develop a social networking Site using WordPress and its Plugins? [closed]
- Buddypress export Profile Fields [closed]
- Buddypress create custom tab on my profile and add on home page [closed]
- New Post Notifications for Users – BUDDYPRESS
- BuddyPress: Conditionally filter directory based on Xprofile Field [closed]
- Will multiple BuddyPress groups slow down a site? [closed]
- Fire curl command everytime new user is created
- Save buddypress xprofile data to author meta
- Pre-populate BuddyPress Member Profile Data in Gravity Forms [closed]
- Format Buddypress Date Picker Output [closed]
- How to get the group_id from the “groups_join_group” action in buddypress [closed]
- Truncate latest activity in buddypress
- Conditional tags to differentiate between profiles and activity with buddypress [closed]
- How to add an error or notification to an activity?
- Buddypress Welcome Email [closed]
- How to get all users that uploaded avatars or have gravatars? [closed]
- Buddypress – adding profile fields to Group > Members directory [closed]
- How to send a BuddyPress user a notification on a plugin event? [closed]
- Change Buddypress Activity Stream Date format [closed]
- Buddypress: remove forum tab in user profile page? [closed]
- Noob Question – Buddypress Dynamic content on static page
- WordPress Super Admin menu not enabled
- SQL Query members by profile fields Buddypress [closed]
- WordPress/Buddypress theme has suddenly stopped working [closed]
- How do you remove the buddypress group avatar from the activity stream post? [closed]
- Using wp-postratings to rate user on profile pages [closed]
- How to remove ( 0, 0 ) from forum page in bbpress [closed]
- How to make the BuddyBar fix and scroll with the page
- BuddyPress redirecting to home page on login [closed]
- Buddypress integration with wordpress
- How to split out BuddyPress notifications drop down items to their own top level? [closed]
- BuddyPress – User Login instead of Full Name [closed]
- Set default landing page for buddypress member profile
- bp_core_new_subnav_item shows new group tab but returns 404 when the tab runs. Works on another page
- Limit the total space in every user
- how can i add the repeater field in buddy press user edit profile
- Return instead of echo
- permalink for group type
- Upload buddy press profile picture from custom page template
- How can I display list of notifications of buddypress in a single page or post
- Buddypress: Filter Members Based on If They Have Posts
- send reply message by thread id in buddypress
- New accounts daily at WP Multi-User site under development, Analytics reports no traffic. What gives?
- is it possible to add_action via template.php rather than function.php for this specific buddypress hook?
- Buddypress – Custom Name For Logged In User’s Messages In Message Thread
- disable plugin in specific dynamic buddypress pages
- Deregister script on specific user’s BuddyPress page
- Missing “Registration” page with BuddyPress [closed]
- How to add username in toolbar link?
- Some ways to debug code
- How to update avatar in buddypress programmatically? [closed]
- How to: When a bp Group created, automatically create a wp category [closed]
- Buddypress Adding a Nav item and Calling Custom Fields [closed]
- I used the Buddypress Message Compose to send a site wide email to all members wasnt sent tho [closed]
- Allowing users to add HTML to BP Groups Description how can I error check html of users? [closed]
- Is it possible to allow BP Group Admins to Set which Menu Tab they would like to have as their Default landing page? [closed]
- Weird google bot crawl problem
- Delete user account – If user has attachments uploaded then redirect (with a message) [closed]
- Add Sub Nav Menu Item to Buddy Press Menu [closed]
- Set maximum number of letters limit on xprofile fields [closed]
- Target “admins” with different styles on the front end [closed]
- BuddyPress – Message’s Send To auto-fill functionality not working
- Is There A List Of What Buddypress Template Files Go Where And What They’re To Be Renamed?
- BuddyPress Activity Stream – Remove/Replace […] from blog post excerpts