input[type='text'], textarea, select { width: 100%; } "; $languages = array( __( 'Auto Detect', 'anr' ) => '', __( 'Arabic', 'anr' ) => 'ar', __( 'Bulgarian', 'anr' ) => 'bg', __( 'Catalan', 'anr' ) => 'ca', __( 'Chinese (Simplified)', 'anr' ) => 'zh-CN', __( 'Chinese (Traditional)', 'anr' ) => 'zh-TW', __( 'Croatian', 'anr' ) => 'hr', __( 'Czech', 'anr' ) => 'cs', __( 'Danish', 'anr' ) => 'da', __( 'Dutch', 'anr' ) => 'nl', __( 'English (UK)', 'anr' ) => 'en-GB', __( 'English (US)', 'anr' ) => 'en', __( 'Filipino', 'anr' ) => 'fil', __( 'Finnish', 'anr' ) => 'fi', __( 'French', 'anr' ) => 'fr', __( 'French (Canadian)', 'anr' ) => 'fr-CA', __( 'German', 'anr' ) => 'de', __( 'German (Austria)', 'anr' ) => 'de-AT', __( 'German (Switzerland)', 'anr' ) => 'de-CH', __( 'Greek', 'anr' ) => 'el', __( 'Hebrew', 'anr' ) => 'iw', __( 'Hindi', 'anr' ) => 'hi', __( 'Hungarain', 'anr' ) => 'hu', __( 'Indonesian', 'anr' ) => 'id', __( 'Italian', 'anr' ) => 'it', __( 'Japanese', 'anr' ) => 'ja', __( 'Korean', 'anr' ) => 'ko', __( 'Latvian', 'anr' ) => 'lv', __( 'Lithuanian', 'anr' ) => 'lt', __( 'Norwegian', 'anr' ) => 'no', __( 'Persian', 'anr' ) => 'fa', __( 'Polish', 'anr' ) => 'pl', __( 'Portuguese', 'anr' ) => 'pt', __( 'Portuguese (Brazil)', 'anr' ) => 'pt-BR', __( 'Portuguese (Portugal)', 'anr' )=> 'pt-PT', __( 'Romanian', 'anr' ) => 'ro', __( 'Russian', 'anr' ) => 'ru', __( 'Serbian', 'anr' ) => 'sr', __( 'Slovak', 'anr' ) => 'sk', __( 'Slovenian', 'anr' ) => 'sl', __( 'Spanish', 'anr' ) => 'es', __( 'Spanish (Latin America)', 'anr' )=> 'es-419', __( 'Swedish', 'anr' ) => 'sv', __( 'Thai', 'anr' ) => 'th', __( 'Turkish', 'anr' ) => 'tr', __( 'Ukrainian', 'anr' ) => 'uk', __( 'Vietnamese', 'anr' ) => 'vi' ); $locations = array( __( 'Login Form', 'anr' ) => 'login', __( 'Registration Form', 'anr' ) => 'registration', __( 'Lost Password Form', 'anr' ) => 'lost_password', __( 'Reset Password Form', 'anr' ) => 'reset_password', __( 'Comment Form', 'anr' ) => 'comment', __( 'bbPress New topic', 'anr' ) => 'bb_new', __( 'bbPress reply to topic', 'anr' )=> 'bb_reply', ); if(isset($_POST['anr-admin-settings-submit'])){ $errors = $this->admin_settings_action(); if(count($errors->get_error_messages())>0){ echo anr_error($errors); } else{ echo'
' .__("Options successfully saved.", 'anr'). '
';}} echo "

".__("Advanced noCaptcha reCaptcha Settings", 'anr')."

".sprintf(__("If you like this plugin please Review in Wordpress.org and give 5 star", 'anr'),esc_url($ReviewURL))."
"; do_action('anr_admin_setting_form'); echo "
".__("Setting", 'anr')."".__("Value", 'anr')."
".__("Site Key", 'anr')."
Get From Google
".__("Secret key", 'anr')."
Get From Google
".__("Language", 'anr')."
".__("Theme", 'anr')."
".__("Size", 'anr')."
".__("Error Message", 'anr')."ERROR: Please solve Captcha correctly.')."' />
".__("Show Captcha on", 'anr').""; foreach ( $locations as $location => $slug ) { echo "
"; } if ( function_exists('fepcf_plugin_activate')) echo "
"; else echo ""; echo ""; echo "
". $this->anr_admin_sidebar(). "
"; } function anr_admin_sidebar() { return '

'. __( "Plugin Author", "anr" ). '

Shamim Hasan
Know php, MySql, css, javascript, html. Expert in WordPress.

You can hire for plugin customization, build custom plugin or any kind of wordpress job via
Contact Form
'; } function admin_settings_action() { if (isset($_POST['anr-admin-settings-submit'])) { $errors = new WP_Error(); $options = $_POST; if( !current_user_can('manage_options')) $errors->add('noPermission', __('No Permission!', 'anr')); if ( !wp_verify_nonce($options['token'], 'anr-admin-settings')) $errors->add('invalidToken', __('Sorry, your nonce did not verify!', 'anr')); $options = apply_filters('anr_filter_admin_setting_before_save', $options, $errors); //var_dump($options); if (count($errors->get_error_codes())==0){ update_option('anr_admin_options', $options); } return $errors; } return false; } function InstructionPage() { $url = 'https://shamimbiplob.wordpress.com/contact-us/'; echo '
'; echo "

".__("Advanced noCaptcha reCaptcha Setup Instruction", 'anr')."

  • ".sprintf(__("Get your site key and secret key from GOOGLE if you do not have already.", 'anr'),esc_url('https://www.google.com/recaptcha/admin'))."
  • ".sprintf(__("Goto SETTINGS page and set up as you need. and ENJOY...", 'anr'),esc_url(admin_url( 'admin.php?page=anr-admin-settings' )))."

  • ".__("Implement noCaptcha in Contact Form 7", 'anr')."


  • ".__("To show noCaptcha use ", 'anr')."[anr_nocaptcha g-recaptcha-response]

  • ".__("If you want to implement noCaptcha in any other custom form", 'anr')."


  • ".__("To show form field use ", 'anr')."anr_captcha_form_field()
  • ".__("To verify use ", 'anr')."anr_verify_captcha() it will return true on success otherwise false

  • ".sprintf(__("For paid support pleasse visit Advanced noCaptcha reCaptcha", 'anr'),esc_url($url))."

". $this->anr_admin_sidebar(). "
"; } function add_settings_link( $links, $file ) { //add settings link in plugins page $plugin_file = 'advanced-nocaptcha-recaptcha/advanced-nocaptcha-recaptcha.php'; if ( $file == $plugin_file ) { $settings_link = '' .__( 'Settings', 'anr' ) . ''; array_unshift( $links, $settings_link ); } return $links; } /******************************************ADMIN SETTINGS PAGE END******************************************/ } //END CLASS } //ENDIF add_action('wp_loaded', array(anr_admin_class::init(), 'actions_filters')); ?>