| @@ -20,8 +20,9 @@ | ||
| 20 | 20 | add_filter( 'weforms_settings_tabs', [ $this, 'set_default_settings' ], 5 ); |
| 21 | 21 | add_action( 'weforms_settings_tab_content_general', [ $this, 'settings_tab_general' ] ); |
| 22 | 22 | add_action( 'weforms_settings_tab_content_recaptcha', [ $this, 'settings_tab_recaptcha' ] ); |
| 23 | 23 | add_action( 'weforms_settings_tab_content_secure-database', [ $this, 'settings_tab_secure_database' ] ); |
| 24 | + add_action( 'weforms_settings_tab_content_humanpresence', [ $this, 'settings_tab_humanpresence' ] ); | |
| 24 | 25 | add_action( 'weforms_settings_tab_content_privacy', [ $this, 'settings_tab_privacy' ] ); |
| 25 | 26 | } |
| 26 | 27 | |
| 27 | 28 | /** |
| @@ -336,8 +337,13 @@ | ||
| 336 | 337 | 'label' => __( 'Secure Database', 'weforms' ), |
| 337 | 338 | 'icon' => WEFORMS_ASSET_URI . '/images/integrations/secure-database.png', |
| 338 | 339 | ]; |
| 339 | 340 | |
| 341 | + $tabs['humanpresence'] = [ | |
| 342 | + 'label' => __( 'Human Presence', 'weforms' ), | |
| 343 | + 'icon' => WEFORMS_ASSET_URI . '/images/integrations/hp-shield.svg', | |
| 344 | + ]; | |
| 345 | + | |
| 340 | 346 | /* TODO: Refactor this block when more options are added in privacy settings*/ |
| 341 | 347 | if ( class_exists( 'WeForms_Pro' ) ) { |
| 342 | 348 | $tabs['privacy'] = [ |
| 343 | 349 | 'label' => __( 'Privacy', 'weforms' ), |
| @@ -377,8 +383,18 @@ | ||
| 377 | 383 | * @return void |
| 378 | 384 | */ |
| 379 | 385 | public function settings_tab_secure_database( $tab ) { |
| 380 | 386 | include __DIR__ . '/views/weforms-settings-secure-database.php'; |
| 387 | + } | |
| 388 | + /** | |
| 389 | + * Human Presence tab content | |
| 390 | + * | |
| 391 | + * @param array $tab | |
| 392 | + * | |
| 393 | + * @return void | |
| 394 | + */ | |
| 395 | + public function settings_tab_humanpresence( $tab ) { | |
| 396 | + include __DIR__ . '/views/weforms-settings-humanpresence.php'; | |
| 381 | 397 | } |
| 382 | 398 | /** |
| 383 | 399 | * Privacy tab content |
| 384 | 400 | * |