• 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?

    • This topic was modified 1 year, 3 months ago by bikerzon.
Viewing 1 replies (of 1 total)
  • Hey @bikerzon,

    Thanks for reaching out to us.

    Can you please modify the code to log something to the console and then test if that works? If it does, then the next step would be to enable “WP Debug” and check if any errors are logged.

Viewing 1 replies (of 1 total)
  • The topic ‘hf_form_success is not working’ is closed to new replies.