hf_form_success is not working
-
Hi
I’ve tried to use the action hook “hf_form_success” but it seems not working. Here’s my code:
add_action(
“hf_form_success”,
function ( $submission, $form ) {
echo var_dump($submission);
}, 10, 2
);Seems I cannot even see the var dump anywhere on my page, and I’ve tried write to database as well just to check whether this action hook is being called:
add_action(
“hf_form_success”,
function ( $submission, $form ) {global $wpdb;
$data = array(
‘logs’ => “test hf form success hook”
);
$result = $wpdb->insert(‘logs_table’, $data);No data are written to my database table.
Seems that the action hook “hf_form_success” is not being call at all.
How to debug this?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘hf_form_success is not working’ is closed to new replies.