Quantcast
Channel: polylang – WordPress.org Forums
Viewing all articles
Browse latest Browse all 11471

Chouby on "[Plugin: Polylang] String translation - small textareas, maybe?"

$
0
0

Sure you can. With php only (as wpml-config.xml does not include such option).
The code snippet below transforms all inputs to textarea.

add_filter('pll_get_strings', 'pll_get_strings', 20);
function pll_get_strings($strings) {
	foreach($strings as $key => $string)
		$strings[$key]['multiline'] = 1;
	return $strings;
}

Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>