# hostinger/2.1.6/includes/Surveys/Questions.php

Hostinger Tools, version 2.1.6. 36 lines.

- Page: https://pluginprobe.com/plugins/hostinger/2.1.6/code/includes/Surveys/Questions.php
- Raw: https://pluginprobe.com/plugins/hostinger/2.1.6/raw/includes/Surveys/Questions.php
- Modified: 2024-03-15T08:53:42+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/hostinger/2.1.6/code/includes/Surveys/Questions.php#L10-L20`.

```php
<?php

namespace Hostinger\Surveys;

defined( 'ABSPATH' ) || exit;

class Questions {
	public function map_survey_questions( string $slug ): array {

		$questions = array(
			'score'   => array(
				'type'               => 'rating',
				'question'           => __( 'How would you rate your experience using our AI Assistant plugin for content generation? (Scale 1-10)', 'hostinger' ),
				'woo_question'       => __( 'How would you rate your experience setting up a WooCommerce site on our hosting?', 'hostinger' ),
				'ai_question'        => __( 'How would you rate your experience using our AI content generation tools in onboarding? (Scale 1-10)', 'hostinger' ),
				'affiliate_question' => __( 'How would you rate your experience publishing Amazon Affiliate links?', 'hostinger' ),
			),
			'comment' => array(
				'type'               => 'comment',
				'question'           => __( 'Do you have any comments/suggestions to improve our AI tools?', 'hostinger' ),
				'woo_question'       => __( 'Do you have any comments/suggestions to improve our WooCommerce onboarding?', 'hostinger' ),
				'ai_question'        => __( 'Do you have any comments/suggestions to improve our AI tools?', 'hostinger' ),
				'affiliate_question' => __( 'How could we improve the Amazon Affiliate plugin and theme?', 'hostinger' ),
			),
		);

		if ( isset( $questions[ $slug ] ) ) {
			return $questions[ $slug ];
		}

		return array();
	}
}

new Questions();

```
