ninja_forms_run_action_settings_preview

The Ninja Forms ninja forms run action settings preview hook.

Description

apply_filters( 'ninja_forms_run_action_settings_preview', (unknown) $action_settings, (unknown) $this_form_id, (unknown) $action_id, (unknown) $this_form_data_settings ); 

Parameters (4)

0. $action_settings (unknown)
The action settings.
1. $this_form_id (unknown)
The this form id.
2. $action_id (unknown)
The action id.
3. $this_form_data_settings (unknown)
The this form data settings.

Usage

To run the hook, copy the example below.
  1. $action_settings = apply_filters( 'ninja_forms_run_action_settings_preview', $action_settings, $this_form_id, $action_id, $this_form_data_settings ); 
  2.  
  3. if ( !empty( $action_settings ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the ninja_forms_run_action_settings_preview callback 
  2. function filter_ninja_forms_run_action_settings_preview( $action_settings, $this_form_id, $action_id, $this_form_data_settings ) { 
  3. // make filter magic happen here... 
  4. return $action_settings
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_run_action_settings_preview', 'filter_ninja_forms_run_action_settings_preview', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_run_action_settings_preview', 'filter_ninja_forms_run_action_settings_preview', 10, 4 ); 

Defined (1)

The filter is defined in the following location(s).

/includes/AJAX/Controllers/Submission.php  
  1. $action[ 'settings' ] = apply_filters( 'ninja_forms_run_action_settings_preview', $action[ 'settings' ], $this->_form_id, $action[ 'id' ], $this->_form_data['settings'] );