Issue with filter 'ea_form_rows'
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.
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
Hi, you need to return value inside your function. So return array should be provided in that function :)
Best regards,
Nikola
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');
Ok I will test it locally today and let you know of the result.
Best regards,
Nikola
Please login or Register to submit your answer