PluginProbe
Hostinger Tools / 2.2.1
Hostinger Tools v2.2.1
3.0.77 3.0.76 3.0.75 3.0.74 3.0.73 3.0.72 3.0.71 3.0.70 3.0.69 3.0.68 3.0.67 3.0.66 1.8.1 1.8.2 1.8.3 1.9.1 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 1.9.9 2.0.0 2.0.1 2.0.4 All 108 releases
hostinger / includes / Surveys / Questions.php

Questions.php in Hostinger Tools 2.2.1, at includes/Surveys/Questions.php

38 lines 1.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Hostinger\Surveys;
4
5 defined( 'ABSPATH' ) || exit;
6
7 class Questions {
8 public function map_survey_questions( string $slug ): array {
9
10 $questions = array(
11 'score' => array(
12 'type' => 'rating',
13 'question' => __( 'How would you rate your experience using our AI Assistant plugin for content generation? (Scale 1-10)', 'hostinger' ),
14 'woo_question' => __( 'How would you rate your experience setting up a WooCommerce site on our hosting?', 'hostinger' ),
15 'ai_question' => __( 'How would you rate your experience using our AI content generation tools in onboarding? (Scale 1-10)', 'hostinger' ),
16 'affiliate_question' => __( 'How would you rate your experience publishing Amazon Affiliate links?', 'hostinger' ),
17 'prebuild_website_question' => __( 'How would you rate your experience building a website based on a pre-built template? (Score 1-10)', 'hostinger' ),
18 ),
19 'comment' => array(
20 'type' => 'comment',
21 'question' => __( 'Do you have any comments/suggestions to improve our AI tools?', 'hostinger' ),
22 'woo_question' => __( 'Do you have any comments/suggestions to improve our WooCommerce onboarding?', 'hostinger' ),
23 'ai_question' => __( 'Do you have any comments/suggestions to improve our AI tools?', 'hostinger' ),
24 'affiliate_question' => __( 'How could we improve the Amazon Affiliate plugin and theme?', 'hostinger' ),
25 'prebuild_website_question' => __( 'How could we make it easier to create a new WordPress website?', 'hostinger' ),
26 ),
27 );
28
29 if ( isset( $questions[ $slug ] ) ) {
30 return $questions[ $slug ];
31 }
32
33 return array();
34 }
35 }
36
37 new Questions();
38