user-choices-validator.php in Elementor Website Builder – more than just a page builder 4.0.5, at app/modules/onboarding/validation/user-choices-validator.php
| 1 | <?php |
| 2 | |
| 3 | namespace Elementor\App\Modules\Onboarding\Validation; |
| 4 | |
| 5 | if ( ! defined( 'ABSPATH' ) ) { |
| 6 | exit; |
| 7 | } |
| 8 | |
| 9 | class User_Choices_Validator extends Base_Validator { |
| 10 | |
| 11 | protected function get_rules(): array { |
| 12 | return [ |
| 13 | 'building_for' => [ |
| 14 | 'type' => 'string', |
| 15 | 'nullable' => true, |
| 16 | ], |
| 17 | |
| 18 | 'site_about' => [ |
| 19 | 'type' => 'string_array', |
| 20 | ], |
| 21 | |
| 22 | 'experience_level' => [ |
| 23 | 'type' => 'string', |
| 24 | 'nullable' => true, |
| 25 | ], |
| 26 | |
| 27 | 'theme_selection' => [ |
| 28 | 'type' => 'string', |
| 29 | 'nullable' => true, |
| 30 | ], |
| 31 | |
| 32 | 'site_features' => [ |
| 33 | 'type' => 'string_array', |
| 34 | ], |
| 35 | ]; |
| 36 | } |
| 37 | } |
| 38 |