bp_get_the_profile_field_options_select

  • apply_filters( 'bp_get_the_profile_field_options_select', '<option' . $selected . ' value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '">' . esc_attr( stripslashes( $options[$k]->name ) ) . '</option>', $options[$k], $field-&gt

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 463
      					// 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"';
      
      					$html .= apply_filters( 'bp_get_the_profile_field_options_select', '<option' . $selected . ' value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '">' . esc_attr( stripslashes( $options[$k]->name ) ) . '</option>', $options[$k], $field->id, $selected, $k );
      				}
      				break;
      
      			case 'multiselectbox':
      				$original_option_values = '';
      				$original_option_values = maybe_unserialize( BP_XProfile_ProfileData::get_value_byid( $field->id ) );
      
      				if ( empty( $original_option_values ) && !empty( $_POST['field_' . $field->id] ) )
      					$original_option_values = $_POST['field_' . $field->id];
      

Comments are closed.