Change reCAPTCHA language

This function will change recaptha language.

Make sure to:

  • change the language abbreviation after hl= like fr (french) in this example

wp_head action hook is located in wp-includes/general-template.php

1
2
3
4
5
6
7
8
9
/*
 * Change Recaptha language
 */
 
add_filter('wp_head', 'recapthca_language');
function recapthca_language(){
	$rl = '<script src="https://www.google.com/recaptcha/api.js?hl=fr"></script>';
	echo $rl;
}