core/libraries/form_sections/inputs/EE_State_Select_Input.php 1 location
|
@@ 97-101 (lines=5) @@
|
94 |
|
if (! empty($states)) { |
95 |
|
// set the default |
96 |
|
$state_options[''][''] = ''; |
97 |
|
foreach ($states as $state) { |
98 |
|
if ($state instanceof EE_State) { |
99 |
|
$state_options[ $state->country()->name() ][ $state->get($this->valueFieldName()) ] = $state->name(); |
100 |
|
} |
101 |
|
} |
102 |
|
} |
103 |
|
return $state_options; |
104 |
|
} |
core/domain/services/registration/form/v1/StateOptions.php 1 location
|
@@ 93-97 (lines=5) @@
|
90 |
|
? $this->state_model->get_all_states() |
91 |
|
: $this->state_model->get_all_active_states(); |
92 |
|
if (! empty($states)) { |
93 |
|
foreach ($states as $state) { |
94 |
|
if ($state instanceof EE_State) { |
95 |
|
$state_options[ $state->country()->name() ][ $state->ID() ] = $state->name(); |
96 |
|
} |
97 |
|
} |
98 |
|
} |
99 |
|
$this->state_options[ $this->action ] = apply_filters( |
100 |
|
'FHEE__EE_SPCO_Reg_Step_Attendee_Information___generate_question_input__state_options', |