• Resolved Jeff Sherk

    (@jsherk)


    Hi
    I have enabled WP Hook developer option, and in the form actions there is WP Hook which I can add.

    It then asks for Hook Tag …. what goes here?
    Do I need to create a custom function (I can use Code Snippets for this) which will send the form data?

    It’s unclear to me how to use this feature (there is no example).

    • This topic was modified 7 months, 3 weeks ago by Jeff Sherk.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Jeff Sherk

    (@jsherk)

    Okay I figured it out…

    You can either add_action in your own custom plugin, or use a plugin like Code Snippets to make this work. I used Code Snippets, and added and activated a new snippet like this:

    add_action( "jeff_test_ninja_forms_wp_hook", "jeff_my_ninja_forms_function" );
    function jeff_my_ninja_forms_function($form_data) {
    // do something with $form_data
    }

    Then when I go to my Ninja Form, and I can Add WP Hook Action, where it asks for Hook Tag I put: jeff_test_ninja_forms_wp_hook

    Plugin Support Faisal Ahammad

    (@faisalahammad)

    Hi Jeff,

    The WP Hook is a custom form action in Ninja Forms that serves as a callback to an action hook of your choice. It is useful for integrating actions without creating custom functions. The callback triggers on form submission and receives form data but cannot update it directly.

    You can find more details in the following URLs: ????

    https://ninjaforms.com/docs/wp-hook/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use Developer WP Hook Hook Tag’ is closed to new replies.