$site_key,
'secret_key'=> $secret_key,
'site_key_v3' => $site_key_v3,
'secret_key_v3'=> $secret_key_v3,
'login_v_gcaptcha'=> $login_v_gcaptcha,
'login_enable_gcaptcha'=> $login_enable_gcaptcha,
'acl_gcaptcha_theme'=>$acl_gcaptcha_theme,
));
update_option('Admin_custome_login_gcaptcha', $g_page);
}
//Reset Page Settings
if($Action == "googleReset") {
$g_page= serialize(array(
'site_key'=>'',
'secret_key'=>'',
'site_key_v3' => '',
'secret_key_v3'=> '',
'login_v_gcaptcha'=> 'v2',
'login_enable_gcaptcha'=>'no',
'acl_gcaptcha_theme'=>'yes',
));
update_option('Admin_custome_login_gcaptcha', $g_page);
}
}
}
function add_google_captcha_script() {
wp_register_script('wl-acl-login-gcaptcha', '', array(), false, true);
wp_enqueue_script('wl-acl-login-gcaptcha') ;
wp_add_inline_script('wl-acl-login-gcaptcha', $js );
}
add_action( 'wp_enqueue_scripts', 'add_google_captcha_script' );