Skip to Content

initialization()

Initializes Nebula WordPress settings.

PHP April 27, 2017

Usage

This function runs automatically, so it is not called manually. Is this incorrect?

Additional Notes

This function is called when clicking the initialize links after activating the Nebula theme and subsequently calls several other initialization functions.

Source File

Located in /libs/Admin/Automation.php on line 270.

No Hooks

This function does not have any filters or actions available. Request one?
PHP
        public function initialization(){
            if ( current_user_can('manage_options') ){
                $this->usage('Initialization');
                $this->add_log('Theme settings have been re-initialized.', 7);
                $this->full_automation();
                $this->initialization_email_prev_settings();

                if ( !$this->get_data('initialized') ){
                    $this->update_data('initialized', time());
                }

                $activated_child = $this->initialization_activate_child_theme();

                $this->render_scss('all'); //Re-render all SCSS files.

                if ( $activated_child ){
                    wp_redirect(admin_url('/themes.php?initialization-success'), 301); //Redirect to show new theme activated
                }
            }
        }

Override

This function can not be short-circuited with an override filter. Request one?