PluginProbe
Hostinger Tools / 2.1.8
Hostinger Tools v2.1.8
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.1.8, at includes/Surveys/Questions.php

36 lines 1.4 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 ),
18 'comment' => array(
19 'type' => 'comment',
20 'question' => __( 'Do you have any comments/suggestions to improve our AI tools?', 'hostinger' ),
21 'woo_question' => __( 'Do you have any comments/suggestions to improve our WooCommerce onboarding?', 'hostinger' ),
22 'ai_question' => __( 'Do you have any comments/suggestions to improve our AI tools?', 'hostinger' ),
23 'affiliate_question' => __( 'How could we improve the Amazon Affiliate plugin and theme?', 'hostinger' ),
24 ),
25 );
26
27 if ( isset( $questions[ $slug ] ) ) {
28 return $questions[ $slug ];
29 }
30
31 return array();
32 }
33 }
34
35 new Questions();
36