array(), 'addifect_site_templates_index' => array(), 'addifect_flush_on_next_render' => false, 'addifect_captured_assets' => array(), 'addifect_active_connection' => array(), ); // Loop through each option and register it if it doesn't exist. foreach ( $options as $option_name => $default_value ) { if ( false === get_option( $option_name ) ) { // 'no' for autoload if these arrays (styles/scripts) are going to be large add_option( $option_name, $default_value, '', 'no' ); } } } // Hook the function to run during admin initialization. add_action( 'admin_init', 'addifect_register_options' );