Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/site partner bundle blog option #39905

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: other

Add site_partner_bundle option to Sites API response.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ class WPCOM_JSON_API_GET_Site_Endpoint extends WPCOM_JSON_API_Endpoint {
'videopress_storage_used',
'is_difm_lite_in_progress',
'site_intent',
'site_partner_bundle',
'site_goals',
'onboarding_segment',
'site_vertical_id',
Expand Down Expand Up @@ -878,6 +879,9 @@ protected function render_option_keys( &$options_response_keys ) {
case 'site_intent':
$options[ $key ] = $site->get_site_intent();
break;
case 'site_partner_bundle':
$options[ $key ] = $site->get_site_partner_bundle();
break;
case 'site_goals':
$options[ $key ] = $site->get_site_goals();
break;
Expand Down
9 changes: 9 additions & 0 deletions projects/plugins/jetpack/sal/class.json-api-site-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,15 @@ public function get_site_intent() {
return get_option( 'site_intent', '' );
}

/**
* Get the option of site partner bundle which value is coming from the Partner Flow
*
* @return string
*/
public function get_site_partner_bundle() {
return get_option( 'site_partner_bundle', '' );
}

/**
* Get site option to determine if and how to display launchpad onboarding
*
Expand Down
Loading