| 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 |
|