WPML Update

Updated required function for WPML to work