true, ) ); \TIOB\Main::instance(); } function ti_tpc_activation_redirect( $product ) { // If the installation time is not set, it means TPC is installed for the first time. if ( empty( get_option( 'templates_patterns_collection_install' ) ) ) { update_option( 'tpc_obd_new_user', 'yes' ); } if ( ( current_action() === 'activated_plugin' && $product === TIOB_BASENAME ) || current_action() === 'switch_theme' ) { add_option( 'tpc_maybe_run_onboarding', true ); } } add_action( 'activated_plugin', 'ti_tpc_activation_redirect' ); add_action( 'switch_theme', 'ti_tpc_activation_redirect' );