ninja_forms_return_echo

The Ninja Forms ninja forms return echo function.

Description

ninja_forms_return_echo( (string) $function_name ); 

Parameters (1)

0. $function_name (string)
The function name.

Usage

  1. if ( !function_exists( 'ninja_forms_return_echo' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/functions.php'; 
  3.  
  4. // The function name. 
  5. $function_name = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ninja_forms_return_echo($function_name); 
  9.  

Defined (1)

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

/deprecated/includes/functions.php  
  1. function ninja_forms_return_echo($function_name) { 
  2. $arguments = func_get_args(); 
  3. array_shift($arguments); // We need to remove the first arg ($function_name) 
  4. ob_start(); 
  5. call_user_func_array($function_name, $arguments); 
  6. $return = ob_get_clean(); 
  7. return $return;