If you look at the codex entry for add_filter
, you’ll see there are 4 arguments for the function, the last being $accepted_args
, which should be an integer. Your add_filter
calls are not correct, so I’m not sure how they worked in the first place.
There appear to be 5 arguments in your hooked function, so I presume your add_filter
s should be:
add_filter('gform_pre_submission_2', 'create_company_full_name', 10, 5);
add_filter('gform_pre_submission_1', 'create_company_full_name', 10, 5);
add_filter('gform_pre_submission_26', 'create_company_full_name', 10, 5);
That said, filters typically return
a value, which your doesn’t, so I can’t say that’s correct either, as I don’t know Gravity Forms at all.
also see Debugging in WordPress.