/** * 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' ); Comments on: Disciples Escoffier teaches French skills to novice cooks – The Standard 12.12.2016 https://www.institutescoffier.com/project/disciples-escoffier-teaches-french-skills-to-novice-cooks-the-standard-12-12-2016/ The Institut Disciples Escoffier is a professional culinary school launched by the world’s largest chef association. We seek to continue inspiring new careers and strive to share with students our passion and know-how for fine cuisine and French gastronomy. Mon, 26 Feb 2018 05:45:50 +0000 hourly 1 https://wordpress.org/?v=7.1