nf_get_settings

The Ninja Forms nf get settings function.

Description

nf_get_settings(); 

Usage

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

Defined (1)

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

/deprecated/includes/ninja-settings.php  
  1. function nf_get_settings() { 
  2. $instance = Ninja_Forms(); 
  3. if ( ! empty ( $instance ) && ! empty ( $instance->plugin_settings ) ) { 
  4. $settings = Ninja_Forms()->plugin_settings; 
  5. } else { 
  6. $settings = Ninja_Forms()->get_plugin_settings(); 
  7.  
  8. return $settings; 
  9. } // nf_get_settings