ninja_forms_submission_actions

Filter Actions so that they can be pragmatically disabled by add-ons.

Description

apply_filters( 'ninja_forms_submission_actions', (unknown) $this_form_cache_actions, (unknown) $this_form_cache, (unknown) $this_form_data ); 

ninja_forms_submission_actions ninja_forms_submission_actions_preview

Parameters (3)

0. $this_form_cache_actions (unknown)
The this form cache actions.
1. $this_form_cache (unknown)
The this form cache.
2. $this_form_data (unknown)
The this form data.

Usage

To run the hook, copy the example below.
  1. $this_form_cache_actions = apply_filters( 'ninja_forms_submission_actions', $this_form_cache_actions, $this_form_cache, $this_form_data ); 
  2.  
  3. if ( !empty( $this_form_cache_actions ) ) { 
  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_submission_actions callback 
  2. function filter_ninja_forms_submission_actions( $this_form_cache_actions, $this_form_cache, $this_form_data ) { 
  3. // make filter magic happen here... 
  4. return $this_form_cache_actions
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'ninja_forms_submission_actions', 'filter_ninja_forms_submission_actions', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'ninja_forms_submission_actions', 'filter_ninja_forms_submission_actions', 10, 3 ); 

Defined (1)

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

/includes/AJAX/Controllers/Submission.php  
  1. $this->_form_cache[ 'actions' ] = apply_filters( 'ninja_forms_submission_actions', $this->_form_cache[ 'actions' ], $this->_form_cache, $this->_form_data );