WordPress at a glance
function is not described


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.


String. redirect url redirecting to WC Admin home screen.


$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

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;