Issue with filter 'ea_form_rows'

Support forumCategory: QuestionsIssue with filter 'ea_form_rows'
jasjc@jasjc.com asked 4 years ago
Hi. When attempting to the use the filter 'ea_form_rows' I am finding the personal information fields do not appear as soon as I activate my filter function call in the child theme functions. I am simply entering the sample code from the documentation.

What I am seeking to do is dynamically set a custom field - which this filter sounds perfect for. Any assistance would be appreciated.
2 Answers
Nikola Loncar Staff answered 4 years ago
Hi, you need to return value inside your function. So return array should be provided in that function :) Best regards, Nikola
jasjc@jasjc.com answered 4 years ago

Hi Nikola,I was just more-or-less using the sample code.

function alter_custom_field($fields) {
  // $fields['module'] = 'Test'; // do stuff here
  return $fields;
}

add_filter('ea_form_rows', 'alter_custom_fields');
Nikola Loncar Staff replied 4 years ago

Ok I will test it locally today and let you know of the result.

Best regards,
Nikola