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 301.
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->is_cli() ){
$this->timer('Full Initialization');
$this->cli_output('Beginning Nebula Initialization');
if ( !$this->is_initialized_before() ){
$this->cli_output('Nebula has not been initialized before for this website');
$this->update_data('initialized', time());
} else {
$this->cli_output('Nebula has been initialized before for this website. Proceeding anyway.', 'warning');
}
$this->usage('initialization');
$this->add_log('Theme settings have been re-initialized.', 7);
$this->full_automation();
$this->initialization_email_prev_settings();
$activated_child = $this->initialization_activate_child_theme();
$this->scss_controller(true); //Re-render all SCSS files.
if ( $activated_child && !$this->is_cli() ){
wp_redirect(admin_url('/themes.php?initialization-success'), 301); //Redirect to show new theme activated
}
$this->cli_output('Nebula initialization complete', 'success');
$this->timer('Full Initialization', 'end');
}
}
Override
This function can not be short-circuited with an override filter. Request one?