nf_get_actions

Hooks NF actions, when present in the $_GET superglobal.

Description

nf_get_actions(); 

Every nf_action present in $_GET is called using WordPress's do_action function. These functions are called on init.


Usage

  1. if ( !function_exists( 'nf_get_actions' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/actions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = nf_get_actions(); 
  7.  

Defined (2)

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

/deprecated/includes/actions.php  
  1. function nf_get_actions() { 
  2. if ( isset( $_GET['nf_action'] ) ) { 
  3. do_action( 'nf_' . $_GET['nf_action'], $_GET ); 
/includes/deprecated.php  
  1. function _nf_get_actions() { 
  2. if ( isset( $_POST['nf_action'] ) ) { 
  3. do_action( 'nf_' . $_POST['nf_action'], $_POST );