Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Filter is not being processed

$
0
0

Replies: 0

I have two very similar plugins attempting to perform post-processing for Ninja Forms. The first one is working fine, however it appears that the second one is not being processed during form submission.

Here are the two different filters and note that: (a) these are in two different plugins, both of which are activated, and (b) for the form which uses id 7, it is being processed by the first plugin but not the second one.

add_filter('ninja_forms_submit_data', 'ninja_forms_submit_data');
function ninja_forms_submit_data($form_data) {
  // process form id 3, 4 and 5 - this is working fine
  return $form_data;
}
add_filter('ninja_forms_submit_data', 'model2_ninja_forms_submit_data');
function model2_ninja_forms_submit_data($form_data) {
  // process form id 7 - this one never gets called
  return $form_data;
}

Can someone suggest what might be wrong with having two similar filters for the same forms?


Viewing all articles
Browse latest Browse all 59525

Trending Articles