Gravity Form is not deactivating as expected

25 Views Asked by At

I want to disable the form with the given ID, but it is throwing an error.

  RGFormsModel::update_form_meta($form_id, 'is_active', true);

[You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1='"is_active"' WHERE form_id=5' at line 1]

0

There are 0 best solutions below