Skip to content

Commit b03d1d6

Browse files
committed
Update gw-list-field-as-choices.php
1 parent 2e651e4 commit b03d1d6

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

gravity-forms/gw-list-field-as-choices.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,14 @@ function populate_choice_fields( $form ) {
4949
$values = GFFormsModel::get_field_value( $list_field );
5050

5151
/**
52-
* Filter whether to return the form or continue with $values populated via filter.
52+
* Filter the values from the List field that will be used to populate field choices.
5353
*
54-
* Allows 3rd parties to avoid customize values for choice use.
55-
*
56-
* @param array|mixed|string $values
57-
* @param array $form
58-
* @param array $args
54+
* @param array|mixed|string $values The List field values that will be used to populate field choices.
55+
* @param array $form The current form.
56+
* @param array $args The arguments used to initialize this instance of GW_List_Field_As_Choices.
5957
*/
60-
$values = apply_filters( 'gplibrary_list_field_choices', $values, $form, $this->_args );
58+
$values = apply_filters( 'gwlfac_list_field_values', $values, $form, $this->_args );
59+
6160
// if list field doesn't have any values, let's ditch this party
6261
if ( ! is_array( $values ) ) {
6362
return $form;

0 commit comments

Comments
 (0)