bp_get_the_profile_field_options_multiselect

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

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 497
      					// 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_multiselect', '<option' . $selected . ' value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '">' . esc_attr( stripslashes( $options[$k]->name ) ) . '</option>', $options[$k], $field->id, $selected, $k );
      				}
      				break;
      
      			case 'radio':
      				$html .= '<div id="field_' . $field->id . '">';
      				$option_value = BP_XProfile_ProfileData::get_value_byid( $field->id );
      
      				for ( $k = 0, $count = count( $options ); $k < $count; ++$k ) {
      					// Check for updated posted values, but errors preventing them from being saved first time
      					if ( isset( $_POST['field_' . $field->id] ) && $option_value != $_POST['field_' . $field->id] ) {
      

Comments are closed.