Skip to content

Commit

Permalink
Blog Onboarding: Remove site-intent on site launch (#31673)
Browse files Browse the repository at this point in the history
* Blog Onboarding: Remove site-intent on site launch

* changelog
  • Loading branch information
lupus2k authored Jul 4, 2023
1 parent 33b4d7c commit bb61166
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: added
Comment: Clean site_intent option when site is launched for blog-onboarding flows


Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,13 @@ function wpcom_track_site_launch_task() {
wpcom_mark_launchpad_task_complete_if_active( 'link_in_bio_launched' );
wpcom_mark_launchpad_task_complete_if_active( 'videopress_launched' );
wpcom_mark_launchpad_task_complete_if_active( 'blog_launched' );

// Remove site intent for blog onboarding flows and disable launchpad.
$site_intent = get_option( 'site_intent' );
if ( in_array( $site_intent, array( 'start-writing', 'design-first' ), true ) ) {
update_option( 'site_intent', '' );
update_option( 'launchpad_screen', 'off' );
}
}

/**
Expand Down

0 comments on commit bb61166

Please sign in to comment.