bp_get_the_profile_field_options_checkbox

  • apply_filters( 'bp_get_the_profile_field_options_checkbox', '<label><input' . $selected . ' type="checkbox" name="field_' . $field->id . '[]" id="field_' . $options[$k]->id . '_' . $k . '" value="' . esc_attr( stripslashes( $options[$k]-&gt

    Source Reference:

    • Component: BuddyPress :: bp-xprofile
      File: /bp-xprofile/bp-xprofile-template.php :: Trac Source Line: 559
      						}
      					}
      
      					// If the user has not yet supplied a value for this field,
      					// check to see whether there is a default value available
      					if ( !is_array( $option_values ) && empty( $option_values ) && !$selected && $options[$k]->is_default_option) {
      						$selected = ' checked="checked"';
      					}
      
      					$html .= apply_filters( 'bp_get_the_profile_field_options_checkbox', '<label><input' . $selected . ' type="checkbox" name="field_' . $field->id . '[]" id="field_' . $options[$k]->id . '_' . $k . '" value="' . esc_attr( stripslashes( $options[$k]->name ) ) . '"> ' . esc_attr( stripslashes( $options[$k]->name ) ) . '</label>', $options[$k], $field->id, $selected, $k );
      				}
      				break;
      
      			case 'datebox':
      				$date = BP_XProfile_ProfileData::get_value_byid( $field->id );
      
      				// Set day, month, year defaults
      				$day   = '';
      				$month = '';
      				$year  = '';
      

Comments are closed.