Trigger action when submitting form with WPForms [closed]

I would suggest you to use the action wpforms_process_entry_save.

add_action('wpforms_process_entry_save', 'your_submit_json_function', 10, 4);

Check the actions list here

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)