/** * Fires when theme first run. * * @since 1.0.0 * @access public */ public function theme_first_run() { // Flush permalink flush_rewrite_rules(); // Generate default Theme, Template, and Template Part if (!TF_Model::theme_exists()) { $this->import_base_theme(); } // Redirect to about screen wp_safe_redirect(esc_url_raw(add_query_arg(array('page' => 'tf-about'), admin_url('index.php')))); }