ninja_forms_save_general_settings

The Ninja Forms ninja forms save general settings function.

Description

ninja_forms_save_general_settings( $data ); 

Parameters (1)

0. $data
The data.

Usage

  1. if ( !function_exists( 'ninja_forms_save_general_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'ninja-forms/deprecated/includes/admin/pages/ninja-forms-settings/tabs/general-settings/general-settings.php'; 
  3.  
  4. // The data. 
  5. $data = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = ninja_forms_save_general_settings($data); 
  9.  

Defined (1)

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

/deprecated/includes/admin/pages/ninja-forms-settings/tabs/general-settings/general-settings.php  
  1. function ninja_forms_save_general_settings( $data ) { 
  2. $plugin_settings = nf_get_settings(); 
  3.  
  4. foreach( $data as $key => $val ) { 
  5. $plugin_settings[$key] = $val; 
  6.  
  7. update_option( 'ninja_forms_settings', $plugin_settings ); 
  8. $update_msg = __( 'Settings Saved', 'ninja-forms' ); 
  9. return $update_msg;