NF_Database_Migrations_Settings

The Ninja Forms NF Database Migrations Settings class.

Defined (1)

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

/includes/Database/Migrations/Settings.php  
  1. class NF_Database_Migrations_Settings extends NF_Abstracts_Migration 
  2. protected $_defaults = array(); 
  3.  
  4. public function __construct() 
  5. $this->_defaults = Ninja_Forms()->config( 'PluginSettingsDefaults' ); 
  6.  
  7. public function run() 
  8. $settings = Ninja_Forms()->get_settings(); 
  9.  
  10. $settings = array_merge( $this->_defaults, $settings ); 
  11.  
  12. Ninja_Forms()->update_settings( $settings );