WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Features

OnboardingTasks::ppcp_ob_after_onboarding_redirect_url() public WC 1.0

Sets the URL users are redirected to after PayPal Payments has received onboarding information from PayPal.

{} It's a method of the class: OnboardingTasks{}

No Hooks.

Return

String. redirect url redirecting to WC Admin home screen.

Usage

$result = OnboardingTasks::ppcp_ob_after_onboarding_redirect_url( $url );
$url(string) (required)
the current redirect url.

Code of OnboardingTasks::ppcp_ob_after_onboarding_redirect_url() WC 5.3.0

<?php
public static function ppcp_ob_after_onboarding_redirect_url( $url ) {
	if ( isset( $_GET['ppcpobw'] ) && 1 === absint( $_GET['ppcpobw'] ) ) { // phpcs:ignore csrf ok, sanitization ok.
		$url = wc_admin_url( '&task=payments&method=paypal&onboarding=complete' );
	}

	return $url;
}