Skip to content

Commit

Permalink
Merge pull request #99 from newfold-labs/add/customer-feedback-toast
Browse files Browse the repository at this point in the history
Add customer satisfaction feedback survey
  • Loading branch information
arunshenoy99 authored Jun 27, 2024
2 parents 13a90d7 + 4ca8d47 commit eacc6a8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions includes/Services/SiteGenService.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use NewfoldLabs\WP\Module\Patterns\SiteClassification as PatternsSiteClassification;
use NewfoldLabs\WP\Module\Data\SiteClassification\PrimaryType;
use NewfoldLabs\WP\Module\Data\SiteClassification\SecondaryType;
use NewfoldLabs\WP\Module\Onboarding\Data\Events;

use function NewfoldLabs\WP\ModuleLoader\container;

Expand Down Expand Up @@ -247,6 +248,16 @@ public static function complete( $active_homepage, $homepage_data ) {
self::trash_sample_page();
container()->get( 'cachePurger' )->purgeAll();

container()->get( 'survey' )->create_toast_survey(
Events::get_category()[0],
'customer_satisfaction_survey',
array(
'label_key' => 'value',
),
__( 'Help us improve', 'wp-module-onboarding-data' ),
__( 'How satisfied were you with the ease of creating your website?', 'wp-module-onboarding-data' ),
);

return true;
}

Expand Down

0 comments on commit eacc6a8

Please sign in to comment.