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.
  1. // run the action 
  2. do_action( 'ninja_forms_before_container', $form_id, $form_get_settings, $form_fields ); 
The following example is for adding a hook callback.
  1. // define the ninja_forms_before_container callback 
  2. function action_ninja_forms_before_container( $form_id, $form_get_settings, $form_fields ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'ninja_forms_before_container', 'action_ninja_forms_before_container', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. 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  
  1. do_action( 'ninja_forms_before_container', $form_id, $form->get_settings(), $form_fields );