Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)Σ(゚Д゚;≡;゚д゚)始,故人唐宰相鲁公,🆚开府南服,余以布衣从戎。明年,别公漳水湄。后明年,公以事过张睢阳庙及颜杲卿所尝往来处,悲歌慷慨,卒不负其言而从之游。今其诗具在,可考也。😭 HEX
HEX
Server: Apache
System: Linux webm006.cluster120.gra.hosting.ovh.net 6.18.39-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Tue Jul 21 12:03:15 CEST 2026 x86_64
User: studionolh (122383)
PHP: 7.3.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/studionolh/www/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() {
	// Do not redirect if WP-CLI is active.
	if ( defined( 'WP_CLI' ) && WP_CLI ) {
		return;
	}

	if ( ! class_exists( 'ET_Onboarding' ) ) {
		// get_template_directory() does not output a trailing slash.
		// {@see https://developer.wordpress.org/reference/functions/get_template_directory/}.
		require_once get_template_directory() . '/onboarding/onboarding.php';
	}

	ET_Onboarding::redirect_to_onboarding_page();
}

add_action(
	'after_switch_theme',
	'et_onboarding_trigger_redirect'
);

/**
 * Trigger remove transients when theme is changed.
 *
 * @return void
 */
function et_onboarding_remove_transients() {
	if ( ! class_exists( 'ET_Onboarding' ) ) {
		// get_template_directory() does not output a trailing slash.
		// {@see https://developer.wordpress.org/reference/functions/get_template_directory/}.
		require_once get_template_directory() . '/onboarding/onboarding.php';
	}

	ET_Onboarding::remove_transients();
}

add_action(
	'switch_theme',
	'et_onboarding_remove_transients'
);