Version Description
- Use tab navigation for settings. Remove extra menu items from admin sidebar.
- Link to documentation on How to get google reCAPTCHA keys.
- Increase footer hook priority as some theme add login/register form with higher priority.
Download this release
Release Info
Developer | shamim51 |
Plugin | Advanced noCaptcha & invisible Captcha |
Version | 6.1.4 |
Comparing to | |
See all releases |
Code changes from version 6.1.3 to 6.1.4
- admin/settings.php +72 -57
- advanced-nocaptcha-recaptcha.php +4 -3
- functions.php +7 -2
- readme.txt +13 -1
admin/settings.php
CHANGED
@@ -57,7 +57,7 @@ class ANR_Settings {
|
|
57 |
'google_keys' => array(
|
58 |
'section_title' => __( 'Google Keys', 'advanced-nocaptcha-recaptcha' ),
|
59 |
'section_callback' => function() {
|
60 |
-
printf( __( 'Get reCaptcha keys from <a href="%s">Google</a>. Make sure to get keys for your selected captcha
|
61 |
},
|
62 |
),
|
63 |
'forms' => array(
|
@@ -77,7 +77,7 @@ class ANR_Settings {
|
|
77 |
}
|
78 |
$fields = array(
|
79 |
'captcha_version' => array(
|
80 |
-
'label' => __( '
|
81 |
'section_id' => 'google_keys',
|
82 |
'type' => 'select',
|
83 |
'class' => 'regular',
|
@@ -87,7 +87,7 @@ class ANR_Settings {
|
|
87 |
'v2_invisible' => __( 'V2 Invisible', 'advanced-nocaptcha-recaptcha' ),
|
88 |
'v3' => __( 'V3', 'advanced-nocaptcha-recaptcha' ),
|
89 |
),
|
90 |
-
'desc' => __( 'Select your
|
91 |
),
|
92 |
'site_key' => array(
|
93 |
'label' => __( 'Site Key', 'advanced-nocaptcha-recaptcha' ),
|
@@ -114,7 +114,7 @@ class ANR_Settings {
|
|
114 |
'bp_register' => __( 'BuddyPress register', 'advanced-nocaptcha-recaptcha' ),
|
115 |
'wc_checkout' => __( 'WooCommerce Checkout', 'advanced-nocaptcha-recaptcha' ),
|
116 |
),
|
117 |
-
'desc' => sprintf( __( 'For "Contact Form 7" you need to follow <a target="_blank" href="%1$s">this instruction</a>. For other forms see <a href="%2$s">this instruction</a>', 'advanced-nocaptcha-recaptcha' ), esc_url( 'https://www.shamimsplugins.com/docs/advanced-nocaptcha-recaptcha/getting-started-advanced-nocaptcha-recaptcha/implement-in-contact-form-7/' ), esc_url(
|
118 |
),
|
119 |
'error_message' => array(
|
120 |
'label' => __( 'Error Message', 'advanced-nocaptcha-recaptcha' ),
|
@@ -463,13 +463,13 @@ class ANR_Settings {
|
|
463 |
|
464 |
function menu_page() {
|
465 |
add_options_page( __( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ), __( 'Advanced noCaptcha & invisible captcha', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-admin-settings', array( $this, 'admin_settings' ) );
|
466 |
-
add_submenu_page( 'anr-non-exist-menu', 'Advanced noCaptcha reCaptcha - ' . __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-instruction', array( $this, 'instruction_page' ) );
|
467 |
|
468 |
}
|
469 |
|
470 |
function network_menu_page() {
|
471 |
add_submenu_page( 'settings.php', __( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ), __( 'Advanced noCaptcha & invisible captcha', 'advanced-nocaptcha-recaptcha' ), 'manage_network_options', 'anr-admin-settings', array( $this, 'admin_settings' ) );
|
472 |
-
add_submenu_page( 'anr-non-exist-menu', 'Advanced noCaptcha reCaptcha - ' . __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), 'manage_network_options', 'anr-instruction', array( $this, 'instruction_page' ) );
|
473 |
|
474 |
}
|
475 |
|
@@ -488,24 +488,45 @@ class ANR_Settings {
|
|
488 |
}
|
489 |
}
|
490 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
491 |
function admin_settings() {
|
492 |
wp_enqueue_script( 'anr-admin' );
|
|
|
|
|
|
|
|
|
493 |
?>
|
494 |
-
<div class="wrap">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
495 |
<div id="poststuff">
|
496 |
<h2><?php _e( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ); ?></h2>
|
497 |
<div id="post-body" class="metabox-holder columns-2">
|
498 |
<div id="post-body-content">
|
499 |
<div id="tab_container">
|
500 |
-
<?php
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
?>
|
508 |
-
</form>
|
509 |
</div><!-- #tab_container-->
|
510 |
</div><!-- #post-body-content-->
|
511 |
<div id="postbox-container-1" class="postbox-container">
|
@@ -514,7 +535,40 @@ class ANR_Settings {
|
|
514 |
</div><!-- #post-body -->
|
515 |
<br class="clear" />
|
516 |
</div><!-- #poststuff -->
|
517 |
-
</div
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
518 |
<?php
|
519 |
}
|
520 |
|
@@ -553,48 +607,9 @@ class ANR_Settings {
|
|
553 |
return $return;
|
554 |
}
|
555 |
|
556 |
-
function instruction_page() {
|
557 |
-
?>
|
558 |
-
<div class="wrap">
|
559 |
-
<div id="poststuff">
|
560 |
-
<div id="post-body" class="metabox-holder columns-2">
|
561 |
-
<h2><?php _e( 'Advanced noCaptcha reCaptcha Setup Instruction', 'advanced-nocaptcha-recaptcha' ); ?></h2>
|
562 |
-
<!-- main content -->
|
563 |
-
<div id="post-body-content">
|
564 |
-
<div class='postbox'>
|
565 |
-
<div class='inside'>
|
566 |
-
<div><?php printf( __( 'Get your site key and secret key from <a href="%s" target="_blank">GOOGLE</a> if you do not have already.', 'advanced-nocaptcha-recaptcha' ), esc_url( 'https://www.google.com/recaptcha/admin' ) ); ?></div>
|
567 |
-
<div><?php printf( __( 'Goto %s page of this plugin and set up as you need. and ENJOY...', 'advanced-nocaptcha-recaptcha' ), '<a href="' . esc_url( admin_url( 'options-general.php?page=anr-admin-settings' ) ) . '">' . esc_html__( 'Settings', 'advanced-nocaptcha-recaptcha' ) . '</a>' ); ?></div>
|
568 |
-
|
569 |
-
<h3><?php _e( 'Implement noCaptcha in Contact Form 7', 'advanced-nocaptcha-recaptcha' ); ?></h3>
|
570 |
-
<div><?php printf( __( 'To show noCaptcha use %s', 'advanced-nocaptcha-recaptcha' ), '<code>[anr_nocaptcha g-recaptcha-response]</code>' ); ?></div>
|
571 |
-
|
572 |
-
<h3><?php _e( 'Implement noCaptcha in WooCommerce', 'advanced-nocaptcha-recaptcha' ); ?></h3>
|
573 |
-
<div><?php _e( 'If Login Form, Registration Form, Lost Password Form, Reset Password Form is selected in SETTINGS page of this plugin they will show and verify Captcha in WooCommerce respective forms also.', 'advanced-nocaptcha-recaptcha' ); ?></div>
|
574 |
-
|
575 |
-
<h3><?php _e( 'If you want to implement noCaptcha in any other custom form', 'advanced-nocaptcha-recaptcha' ); ?></h3>
|
576 |
-
<div><?php printf( __( 'To show noCaptcha in a form use %1$s OR %2$s', 'advanced-nocaptcha-recaptcha' ), "<code>do_action( 'anr_captcha_form_field' )</code>", '<code>[anr-captcha]</code>' ); ?></div>
|
577 |
-
<div><?php printf( __( 'To verify use %s. It will return true on success otherwise false.', 'advanced-nocaptcha-recaptcha' ), '<code>anr_verify_captcha()</code>' ); ?></div>
|
578 |
-
<div><?php printf( __( 'For paid support pleasse visit <a href="%s" target="_blank">Advanced noCaptcha reCaptcha</a>', 'advanced-nocaptcha-recaptcha' ), esc_url( 'https://www.shamimsplugins.com/hire/' ) ); ?></div>
|
579 |
-
</div>
|
580 |
-
</div>
|
581 |
-
<div><a class="button" href="<?php echo esc_url( admin_url( 'options-general.php?page=anr-admin-settings' ) ); ?>"><?php esc_html_e( 'Back to Settings', 'advanced-nocaptcha-recaptcha' ); ?></a></div>
|
582 |
-
</div>
|
583 |
-
<div id="postbox-container-1" class="postbox-container">
|
584 |
-
<?php echo $this->anr_admin_sidebar(); ?>
|
585 |
-
</div>
|
586 |
-
</div>
|
587 |
-
<br class="clear" />
|
588 |
-
</div>
|
589 |
-
</div>
|
590 |
-
<?php
|
591 |
-
}
|
592 |
-
|
593 |
-
|
594 |
function add_settings_link( $links ) {
|
595 |
// add settings link in plugins page
|
596 |
-
$
|
597 |
-
$settings_link = '<a href="' . $url . '">' . __( 'Settings', 'advanced-nocaptcha-recaptcha' ) . '</a>';
|
598 |
array_unshift( $links, $settings_link );
|
599 |
return $links;
|
600 |
}
|
57 |
'google_keys' => array(
|
58 |
'section_title' => __( 'Google Keys', 'advanced-nocaptcha-recaptcha' ),
|
59 |
'section_callback' => function() {
|
60 |
+
printf( __( 'Get reCaptcha keys from <a href="%s" target="_blank" rel="noopener noreferrer">Google</a>. Make sure to get keys for your selected captcha type. <a href="%s" target="_blank" rel="noopener noreferrer">How to get google reCAPTCHA keys?</a>.', 'advanced-nocaptcha-recaptcha' ), 'https://www.google.com/recaptcha/admin', 'https://www.shamimsplugins.com/docs/advanced-nocaptcha-recaptcha/getting-started-advanced-nocaptcha-recaptcha/how-to-get-google-recaptcha-keys/' );
|
61 |
},
|
62 |
),
|
63 |
'forms' => array(
|
77 |
}
|
78 |
$fields = array(
|
79 |
'captcha_version' => array(
|
80 |
+
'label' => __( 'reCAPTCHA type', 'advanced-nocaptcha-recaptcha' ),
|
81 |
'section_id' => 'google_keys',
|
82 |
'type' => 'select',
|
83 |
'class' => 'regular',
|
87 |
'v2_invisible' => __( 'V2 Invisible', 'advanced-nocaptcha-recaptcha' ),
|
88 |
'v3' => __( 'V3', 'advanced-nocaptcha-recaptcha' ),
|
89 |
),
|
90 |
+
'desc' => __( 'Select your reCAPTCHA type. Make sure to use site key and secret key for your selected type.', 'advanced-nocaptcha-recaptcha' ),
|
91 |
),
|
92 |
'site_key' => array(
|
93 |
'label' => __( 'Site Key', 'advanced-nocaptcha-recaptcha' ),
|
114 |
'bp_register' => __( 'BuddyPress register', 'advanced-nocaptcha-recaptcha' ),
|
115 |
'wc_checkout' => __( 'WooCommerce Checkout', 'advanced-nocaptcha-recaptcha' ),
|
116 |
),
|
117 |
+
'desc' => sprintf( __( 'For "Contact Form 7" you need to follow <a target="_blank" rel="noopener noreferrer" href="%1$s">this instruction</a>. For other forms see <a href="%2$s">this instruction</a>', 'advanced-nocaptcha-recaptcha' ), esc_url( 'https://www.shamimsplugins.com/docs/advanced-nocaptcha-recaptcha/getting-started-advanced-nocaptcha-recaptcha/implement-in-contact-form-7/' ), esc_url( anr_settings_page_url( 'instruction' ) ) ),
|
118 |
),
|
119 |
'error_message' => array(
|
120 |
'label' => __( 'Error Message', 'advanced-nocaptcha-recaptcha' ),
|
463 |
|
464 |
function menu_page() {
|
465 |
add_options_page( __( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ), __( 'Advanced noCaptcha & invisible captcha', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-admin-settings', array( $this, 'admin_settings' ) );
|
466 |
+
//add_submenu_page( 'anr-non-exist-menu', 'Advanced noCaptcha reCaptcha - ' . __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), 'manage_options', 'anr-instruction', array( $this, 'instruction_page' ) );
|
467 |
|
468 |
}
|
469 |
|
470 |
function network_menu_page() {
|
471 |
add_submenu_page( 'settings.php', __( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ), __( 'Advanced noCaptcha & invisible captcha', 'advanced-nocaptcha-recaptcha' ), 'manage_network_options', 'anr-admin-settings', array( $this, 'admin_settings' ) );
|
472 |
+
//add_submenu_page( 'anr-non-exist-menu', 'Advanced noCaptcha reCaptcha - ' . __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), __( 'Instruction', 'advanced-nocaptcha-recaptcha' ), 'manage_network_options', 'anr-instruction', array( $this, 'instruction_page' ) );
|
473 |
|
474 |
}
|
475 |
|
488 |
}
|
489 |
}
|
490 |
|
491 |
+
function get_tabs(){
|
492 |
+
return [
|
493 |
+
'settings' => __( 'Settings', 'advanced-nocaptcha-recaptcha' ),
|
494 |
+
'instruction' => __( 'Instruction', 'advanced-nocaptcha-recaptcha' ),
|
495 |
+
];
|
496 |
+
}
|
497 |
+
|
498 |
function admin_settings() {
|
499 |
wp_enqueue_script( 'anr-admin' );
|
500 |
+
$current_tab = 'settings';
|
501 |
+
if( !empty( $_GET['tab'] ) ){
|
502 |
+
$current_tab = $_GET['tab'];
|
503 |
+
}
|
504 |
?>
|
505 |
+
<div class="wrap fs-section">
|
506 |
+
<h2 class="nav-tab-wrapper">
|
507 |
+
<?php
|
508 |
+
foreach( $this->get_tabs() as $k => $v ){
|
509 |
+
$active = '';
|
510 |
+
if( $k === $current_tab ){
|
511 |
+
$active = ' nav-tab-active';
|
512 |
+
}
|
513 |
+
printf( '<a href="%s" class="nav-tab fs-tab%s">%s</a>', anr_settings_page_url( $k ), $active, $v );
|
514 |
+
}
|
515 |
+
?>
|
516 |
+
</h2>
|
517 |
+
<!-- Plugin settings go here -->
|
518 |
<div id="poststuff">
|
519 |
<h2><?php _e( 'Advanced noCaptcha & invisible captcha Settings', 'advanced-nocaptcha-recaptcha' ); ?></h2>
|
520 |
<div id="post-body" class="metabox-holder columns-2">
|
521 |
<div id="post-body-content">
|
522 |
<div id="tab_container">
|
523 |
+
<?php
|
524 |
+
if( 'settings' == $current_tab ){
|
525 |
+
$this->settings_form();
|
526 |
+
} elseif( 'instruction' == $current_tab ){
|
527 |
+
$this->instruction_page();
|
528 |
+
}
|
529 |
+
?>
|
|
|
|
|
530 |
</div><!-- #tab_container-->
|
531 |
</div><!-- #post-body-content-->
|
532 |
<div id="postbox-container-1" class="postbox-container">
|
535 |
</div><!-- #post-body -->
|
536 |
<br class="clear" />
|
537 |
</div><!-- #poststuff -->
|
538 |
+
</div>
|
539 |
+
<?php
|
540 |
+
}
|
541 |
+
|
542 |
+
function settings_form(){
|
543 |
+
?>
|
544 |
+
<?php settings_errors( 'anr_admin_options' ); ?>
|
545 |
+
<form method="post" action="">
|
546 |
+
<?php
|
547 |
+
settings_fields( 'anr_admin_options' );
|
548 |
+
do_settings_sections( 'anr_admin_options' );
|
549 |
+
do_action( 'anr_admin_setting_form' );
|
550 |
+
submit_button();
|
551 |
+
?>
|
552 |
+
</form>
|
553 |
+
<?php
|
554 |
+
}
|
555 |
+
function instruction_page(){
|
556 |
+
?>
|
557 |
+
<div><?php printf( __( 'Get your site key and secret key from <a href="%s" target="_blank" rel="noopener noreferrer">GOOGLE</a> if you do not have already. <a href="%s" target="_blank" rel="noopener noreferrer">How to get google reCAPTCHA keys?</a>.', 'advanced-nocaptcha-recaptcha' ), esc_url( 'https://www.google.com/recaptcha/admin' ), 'https://www.shamimsplugins.com/docs/advanced-nocaptcha-recaptcha/getting-started-advanced-nocaptcha-recaptcha/how-to-get-google-recaptcha-keys/' ); ?></div>
|
558 |
+
<div><?php printf( __( 'Goto %s page of this plugin and set up as you need. and ENJOY...', 'advanced-nocaptcha-recaptcha' ), '<a href="' . esc_url( anr_settings_page_url() ) . '">' . esc_html__( 'Settings', 'advanced-nocaptcha-recaptcha' ) . '</a>' ); ?></div>
|
559 |
+
|
560 |
+
<h3><?php _e( 'Implement noCaptcha in Contact Form 7', 'advanced-nocaptcha-recaptcha' ); ?></h3>
|
561 |
+
<div><?php printf( __( 'To show noCaptcha use %s', 'advanced-nocaptcha-recaptcha' ), '<code>[anr_nocaptcha g-recaptcha-response]</code>' ); ?></div>
|
562 |
+
<div><?php printf( __( 'Full details can be found in <a target="_blank" rel="noopener noreferrer" href="%1$s">this instruction</a>', 'advanced-nocaptcha-recaptcha' ), esc_url( 'https://www.shamimsplugins.com/docs/advanced-nocaptcha-recaptcha/getting-started-advanced-nocaptcha-recaptcha/implement-in-contact-form-7/' ) ) ?></div>
|
563 |
+
|
564 |
+
<h3><?php _e( 'Implement noCaptcha in WooCommerce', 'advanced-nocaptcha-recaptcha' ); ?></h3>
|
565 |
+
<div><?php _e( 'If Login Form, Registration Form, Lost Password Form, Reset Password Form is selected in SETTINGS page of this plugin they will show and verify Captcha in WooCommerce respective forms also.', 'advanced-nocaptcha-recaptcha' ); ?></div>
|
566 |
+
|
567 |
+
<h3><?php _e( 'If you want to implement noCaptcha in any other custom form', 'advanced-nocaptcha-recaptcha' ); ?></h3>
|
568 |
+
<div><?php printf( __( 'To show noCaptcha in a form use %1$s OR %2$s', 'advanced-nocaptcha-recaptcha' ), "<code>do_action( 'anr_captcha_form_field' )</code>", '<code>[anr-captcha]</code>' ); ?></div>
|
569 |
+
<div><?php printf( __( 'To verify use %s. It will return true on success otherwise false.', 'advanced-nocaptcha-recaptcha' ), '<code>anr_verify_captcha()</code>' ); ?></div>
|
570 |
+
<div><?php printf( __( 'For paid support pleasse visit <a href="%s" target="_blank" rel="noopener noreferrer">Advanced noCaptcha reCaptcha</a>', 'advanced-nocaptcha-recaptcha' ), esc_url( 'https://www.shamimsplugins.com/hire/' ) ); ?></div>
|
571 |
+
|
572 |
<?php
|
573 |
}
|
574 |
|
607 |
return $return;
|
608 |
}
|
609 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
610 |
function add_settings_link( $links ) {
|
611 |
// add settings link in plugins page
|
612 |
+
$settings_link = '<a href="' . anr_settings_page_url() . '">' . __( 'Settings', 'advanced-nocaptcha-recaptcha' ) . '</a>';
|
|
|
613 |
array_unshift( $links, $settings_link );
|
614 |
return $links;
|
615 |
}
|
advanced-nocaptcha-recaptcha.php
CHANGED
@@ -3,12 +3,12 @@
|
|
3 |
Plugin Name: Advanced noCaptcha & invisible Captcha
|
4 |
Plugin URI: https://www.shamimsplugins.com/contact-us/
|
5 |
Description: Show noCaptcha or invisible captcha in Comment Form, bbPress, BuddyPress, WooCommerce, CF7, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
-
Version: 6.1.
|
7 |
Author: Shamim Hasan
|
8 |
Author URI: https://www.shamimsplugins.com/contact-us/
|
9 |
Text Domain: advanced-nocaptcha-recaptcha
|
10 |
License: GPLv2 or later
|
11 |
-
WC tested up to: 4.
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -42,7 +42,7 @@ class ANR {
|
|
42 |
}
|
43 |
|
44 |
private function constants() {
|
45 |
-
define( 'ANR_PLUGIN_VERSION', '6.1.
|
46 |
define( 'ANR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
47 |
define( 'ANR_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
48 |
define( 'ANR_PLUGIN_FILE', __FILE__ );
|
@@ -96,6 +96,7 @@ if ( function_exists( 'anr_fs' ) ) {
|
|
96 |
'has_addons' => false,
|
97 |
'has_paid_plans' => true,
|
98 |
'anonymous_mode' => true,
|
|
|
99 |
'is_live' => true,
|
100 |
'menu' => array(
|
101 |
'slug' => 'anr-admin-settings',
|
3 |
Plugin Name: Advanced noCaptcha & invisible Captcha
|
4 |
Plugin URI: https://www.shamimsplugins.com/contact-us/
|
5 |
Description: Show noCaptcha or invisible captcha in Comment Form, bbPress, BuddyPress, WooCommerce, CF7, Login, Register, Lost Password, Reset Password. Also can implement in any other form easily.
|
6 |
+
Version: 6.1.4
|
7 |
Author: Shamim Hasan
|
8 |
Author URI: https://www.shamimsplugins.com/contact-us/
|
9 |
Text Domain: advanced-nocaptcha-recaptcha
|
10 |
License: GPLv2 or later
|
11 |
+
WC tested up to: 4.5.2
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
42 |
}
|
43 |
|
44 |
private function constants() {
|
45 |
+
define( 'ANR_PLUGIN_VERSION', '6.1.4' );
|
46 |
define( 'ANR_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
|
47 |
define( 'ANR_PLUGIN_URL', plugins_url( '/', __FILE__ ) );
|
48 |
define( 'ANR_PLUGIN_FILE', __FILE__ );
|
96 |
'has_addons' => false,
|
97 |
'has_paid_plans' => true,
|
98 |
'anonymous_mode' => true,
|
99 |
+
'navigation' => 'tabs',
|
100 |
'is_live' => true,
|
101 |
'menu' => array(
|
102 |
'slug' => 'anr-admin-settings',
|
functions.php
CHANGED
@@ -149,8 +149,8 @@ function anr_include_require_files() {
|
|
149 |
require_once $fep_file;
|
150 |
}
|
151 |
}
|
152 |
-
add_action( 'wp_footer', 'anr_wp_footer',
|
153 |
-
add_action( 'login_footer', 'anr_wp_footer',
|
154 |
|
155 |
function anr_wp_footer() {
|
156 |
anr_captcha_class::init()->footer_script();
|
@@ -213,3 +213,8 @@ function anr_same_settings_for_all_sites(){
|
|
213 |
}
|
214 |
return is_plugin_active_for_network( plugin_basename( ANR_PLUGIN_FILE ) );
|
215 |
}
|
|
|
|
|
|
|
|
|
|
149 |
require_once $fep_file;
|
150 |
}
|
151 |
}
|
152 |
+
add_action( 'wp_footer', 'anr_wp_footer', 99999 );
|
153 |
+
add_action( 'login_footer', 'anr_wp_footer', 99999 );
|
154 |
|
155 |
function anr_wp_footer() {
|
156 |
anr_captcha_class::init()->footer_script();
|
213 |
}
|
214 |
return is_plugin_active_for_network( plugin_basename( ANR_PLUGIN_FILE ) );
|
215 |
}
|
216 |
+
|
217 |
+
function anr_settings_page_url( $tab = false ){
|
218 |
+
$url = anr_same_settings_for_all_sites() ? network_admin_url( 'settings.php?page=anr-admin-settings' ) : admin_url( 'options-general.php?page=anr-admin-settings' );
|
219 |
+
return add_query_arg( 'tab', $tab, $url );
|
220 |
+
}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: recaptcha,nocaptcha,invisible,bot,spam
|
|
4 |
Donate link: https://www.shamimsplugins.com/products/advanced-nocaptcha-and-invisible-captcha-pro/
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.5
|
7 |
-
Stable tag: 6.1.
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -91,6 +91,12 @@ You can access your file via FTP or file manager and rename "advanced-nocaptcha-
|
|
91 |
|
92 |
== Changelog ==
|
93 |
|
|
|
|
|
|
|
|
|
|
|
|
|
94 |
= 6.1.3 =
|
95 |
|
96 |
* recaptcha.net domain added.
|
@@ -238,6 +244,12 @@ You can access your file via FTP or file manager and rename "advanced-nocaptcha-
|
|
238 |
|
239 |
== Upgrade Notice ==
|
240 |
|
|
|
|
|
|
|
|
|
|
|
|
|
241 |
= 6.1.3 =
|
242 |
|
243 |
* recaptcha.net domain added.
|
4 |
Donate link: https://www.shamimsplugins.com/products/advanced-nocaptcha-and-invisible-captcha-pro/
|
5 |
Requires at least: 4.4
|
6 |
Tested up to: 5.5
|
7 |
+
Stable tag: 6.1.4
|
8 |
Requires PHP: 5.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
91 |
|
92 |
== Changelog ==
|
93 |
|
94 |
+
= 6.1.4 =
|
95 |
+
|
96 |
+
* Use tab navigation for settings. Remove extra menu items from admin sidebar.
|
97 |
+
* Link to documentation on How to get google reCAPTCHA keys.
|
98 |
+
* Increase footer hook priority as some theme add login/register form with higher priority.
|
99 |
+
|
100 |
= 6.1.3 =
|
101 |
|
102 |
* recaptcha.net domain added.
|
244 |
|
245 |
== Upgrade Notice ==
|
246 |
|
247 |
+
= 6.1.4 =
|
248 |
+
|
249 |
+
* Use tab navigation for settings. Remove extra menu items from admin sidebar.
|
250 |
+
* Link to documentation on How to get google reCAPTCHA keys.
|
251 |
+
* Increase footer hook priority as some theme add login/register form with higher priority.
|
252 |
+
|
253 |
= 6.1.3 =
|
254 |
|
255 |
* recaptcha.net domain added.
|