A Cozmoslabs Product

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;
}

The Ultimate Membership Bundle

Combine the power of Profile Builder with Paid Member Subscriptions to set up user registration, memberships, and recurring revenue.

Get 25% off with the bundle

Help & Support

We’re here to help you every step of the way.

Open a Support Ticket