WC_Admin_Setup_Wizard::wc_setup_activate_actions()

Go to the next step if Jetpack was connected.


Description Description


Source Source

File: includes/admin/class-wc-admin-setup-wizard.php

	protected function wc_setup_activate_actions() {
		if (
			isset( $_GET['from'] ) &&
			'wpcom' === $_GET['from'] &&
			class_exists( 'Jetpack' ) &&
			Jetpack::is_active()
		) {
			wp_redirect( esc_url_raw( remove_query_arg( 'from', $this->get_next_step_link() ) ) );
			exit;
		}
	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.