Function Reference: geodir_wpml_add_language_input_field

Summary

Add hidden WPML language input field.

Global Values

$sitepress
(SitePress) (required)

Default: None

Package

GeoDirectory

Change Log

Since: 2.0.0

Source File

geodir_wpml_add_language_input_field() is located in geodirectory_hooks_actions.php [Line: 3128]

Source Code

function geodir_wpml_add_language_input_field() {
	global $sitepress;

	if ( function_exists( 'wpml_add_language_form_field_action' ) && WPML_LANGUAGE_NEGOTIATION_TYPE_PARAMETER === (int) $sitepress->get_setting( 'language_negotiation_type' ) ) {
		wpml_add_language_form_field_action();
	}
}