Skip to content

Commit

Permalink
Update/monetize jpcloud launchpad links (#36728)
Browse files Browse the repository at this point in the history
* Monetize: Update launchpad tasks links to JP Cloud

* changelog

---------

Co-authored-by: okmttdhr <[email protected]>
  • Loading branch information
lupus2k and okmttdhr authored Apr 11, 2024
1 parent 090ab26 commit 9409294
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: changed

Update Monetize Launchpad links to Jetpack Cloud
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,9 @@ function wpcom_launchpad_get_task_definitions() {
'earn-launchpad'
);
}
if ( wpcom_launchpad_should_use_jetpack_cloud_link() ) {
return 'https://cloud.jetpack.com/monetize/payments/' . $data['site_slug_encoded'];
}
return '/earn/payments/' . $data['site_slug_encoded'];
},
),
Expand All @@ -587,6 +590,9 @@ function wpcom_launchpad_get_task_definitions() {
'is_complete_callback' => 'wpcom_launchpad_has_paid_membership_plans',
'is_visible_callback' => '__return_true',
'get_calypso_path' => function ( $task, $default, $data ) {
if ( wpcom_launchpad_should_use_jetpack_cloud_link() ) {
return 'https://cloud.jetpack.com/monetize/payments/' . $data['site_slug_encoded'] . '#add-new-payment-plan';
}
return '/earn/payments/' . $data['site_slug_encoded'] . '#add-new-payment-plan';
},
),
Expand Down

0 comments on commit 9409294

Please sign in to comment.