PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.15
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.15
1.6.7 1.6.8 1.6.9 1.6.12 1.6.13 1.6.14 1.6.15 1.6.16 1.6.17 1.6.18 1.6.19 1.6.2 1.6.20 1.6.21 1.6.22 1.6.23 1.6.24 1.6.25 1.6.26 1.6.27 1.6.28 1.6.3 1.6.4 1.6.5 1.6.6 All 74 releases
← All changes | includes/admin/class-admin.php +16 -0 1.6.51.6.15 View file →
@@ -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 *