bp_get_the_profile_field_options_radio

  • apply_filters( 'bp_get_the_profile_field_options_radio', '<label><input' . $selected . ' type="radio" name="field_' . $field->id . '" id="option_' . $options[$k]->id . '" value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '">

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 520
      					// Run the allowed option name through the before_save
      					// filter, so we'll be sure to get a match
      					$allowed_options = xprofile_sanitize_data_value_before_save( $options[$k]->name, false, false );
      
      					$selected = '';
      					if ( $option_value == $allowed_options || !empty( $value ) && $value == $allowed_options || ( empty( $option_value ) && $options[$k]->is_default_option ) )
      						$selected = ' checked="checked"';
      
      					$html .= apply_filters( 'bp_get_the_profile_field_options_radio', '<label><input' . $selected . ' type="radio" name="field_' . $field->id . '" id="option_' . $options[$k]->id . '" value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '"> ' . esc_attr( stripslashes( $options[$k]->name ) ) . '</label>', $options[$k], $field->id, $selected, $k );
      				}
      
      				$html .= '</div>';
      				break;
      
      			case 'checkbox':
      				$option_values = BP_XProfile_ProfileData::get_value_byid( $field->id );
      				$option_values = maybe_unserialize( $option_values );
      
      				// Check for updated posted values, but errors preventing them from being saved first time
      

Comments are closed.