PluginProbe
weForms – Easy Drag & Drop Contact Form Builder For WordPress / 1.6.1
weForms – Easy Drag & Drop Contact Form Builder For WordPress v1.6.1
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 +0 -44 1.6.61.6.1 View file →
@@ -9,10 +9,8 @@
9 9 add_action( 'init', [ $this, 'register_post_type' ] );
10 10 add_action( 'admin_menu', [ $this, 'register_admin_menu' ] );
11 11 add_action( 'pre_update_option_wpuf_general', [ $this, 'watch_wpuf_settings' ] );
12 12
13 - add_action( 'admin_notices', array( $this, 'wpuf_premium_cta' ) );
14 -
15 13 add_filter( 'admin_footer_text', [ $this, 'admin_footer_text' ] );
16 14 add_filter( 'admin_post_weforms_export_forms', [ $this, 'export_forms' ] );
17 15 add_filter( 'admin_post_weforms_export_form_entries', [ $this, 'export_form_entries' ] );
18 16
@@ -20,9 +18,8 @@
20 18 add_filter( 'weforms_settings_tabs', [ $this, 'set_default_settings' ], 5 );
21 19 add_action( 'weforms_settings_tab_content_general', [ $this, 'settings_tab_general' ] );
22 20 add_action( 'weforms_settings_tab_content_recaptcha', [ $this, 'settings_tab_recaptcha' ] );
23 21 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' ] );
25 22 add_action( 'weforms_settings_tab_content_privacy', [ $this, 'settings_tab_privacy' ] );
26 23 }
27 24
28 25 /**
@@ -337,13 +334,8 @@
337 334 'label' => __( 'Secure Database', 'weforms' ),
338 335 'icon' => WEFORMS_ASSET_URI . '/images/integrations/secure-database.png',
339 336 ];
340 337
341 - $tabs['humanpresence'] = [
342 - 'label' => __( 'Human Presence', 'weforms' ),
343 - 'icon' => WEFORMS_ASSET_URI . '/images/integrations/hp-shield.svg',
344 - ];
345 -
346 338 /* TODO: Refactor this block when more options are added in privacy settings*/
347 339 if ( class_exists( 'WeForms_Pro' ) ) {
348 340 $tabs['privacy'] = [
349 341 'label' => __( 'Privacy', 'weforms' ),
@@ -385,18 +377,8 @@
385 377 public function settings_tab_secure_database( $tab ) {
386 378 include __DIR__ . '/views/weforms-settings-secure-database.php';
387 379 }
388 380 /**
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';
397 - }
398 - /**
399 381 * Privacy tab content
400 382 *
401 383 * @param array $tab
402 384 *
@@ -404,31 +386,5 @@
404 386 */
405 387 public function settings_tab_privacy( $tab ) {
406 388 include __DIR__ . '/views/weforms-settings-privacy.php';
407 389 }
408 -
409 - /**
410 - * WeForms Pro CTA notice
411 - *
412 - * @since 1.6.5
413 - */
414 - public function wpuf_premium_cta() {
415 - $screen = get_current_screen();
416 - if ( $screen && $screen->base && 'toplevel_page_weforms' !== $screen->base ) {
417 - return;
418 - }
419 -
420 - if ( ! class_exists( 'WeForms_Pro' ) ) {
421 - ?>
422 - <div class="notice updated premium-cta">
423 - <p style="display: flex;align-items: center;">
424 - <img style="padding-right:15px;" src="<?php echo WEFORMS_ASSET_URI . '/images/weforms-logo.png'; ?>">
425 - <?php _e( 'You&#39;re using weForms Free. For more features, modules and more consider upgrading to Pro.' , 'weforms' ); ?>
426 - </p>
427 - <p class="submit">
428 - <a href="https://weformspro.com/get-premium/?utm_source=Entries&utm_medium=Button&utm_campaign=Upgrade%20Now" target="_blank" class="button-primary"><?php _e( 'UPGRADE NOW!' , 'weforms' ); ?></a>
429 - </p>
430 - </div>
431 - <?php
432 - }
433 - }
434 390 }