WC_Helper::maybe_redirect_to_new_marketplace_installer()private staticWC 1.0

Maybe redirect to the new Marketplace installer.

Method of the class: WC_Helper{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = WC_Helper::maybe_redirect_to_new_marketplace_installer();

WC_Helper::maybe_redirect_to_new_marketplace_installer() code WC 8.9.0

private static function maybe_redirect_to_new_marketplace_installer() {
	// phpcs:disable WordPress.Security.NonceVerification.Recommended
	// Redirect requires the "install" URL parameter to be passed.
	if ( empty( $_GET['install'] ) ) {
		return;
	}

	wp_safe_redirect(
		self::get_helper_redirect_url(
			array(
				'page'    => 'wc-addons',
				'section' => 'helper',
			)
		)
	);
}