ninja_forms_before_container
The Ninja Forms ninja forms before container hook.
Description
do_action( 'ninja_forms_before_container', (unknown) $form_id, (unknown) $form_get_settings, (unknown) $form_fields );
Parameters (3)
- 0. $form_id (unknown)
- The form id.
- 1. $form_get_settings (unknown)
- The form get settings.
- 2. $form_fields (unknown)
- The form fields.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'ninja_forms_before_container', $form_id, $form_get_settings, $form_fields );
- The following example is for adding a hook callback.
- // define the ninja_forms_before_container callback
- function action_ninja_forms_before_container( $form_id, $form_get_settings, $form_fields ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'ninja_forms_before_container', 'action_ninja_forms_before_container', 10, 3 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'ninja_forms_before_container', 'action_ninja_forms_before_container', 10, 3 );
Defined (1)
The action is defined in the following location(s).
- /includes/Display/Render.php
- do_action( 'ninja_forms_before_container', $form_id, $form->get_settings(), $form_fields );