Home Forums Plugins CURCY – WooCommerce Multi Currency Any Hook after detecting language?

Any Hook after detecting language?

  • Author
    Posts
  • #29711

    Turgut
    Participant

    Hi,

    I’ve edited location.php under “frontend” directory and made some changes in init() function which can change the wpml language of the web site and redirects to page belongs that language.

    In a nutshell, I want to autodetect and force language by GeoIp location and I’m using WPML for translation. There is no working plugin for that, tried couple of them. And then I used WC multi currency plugin for that. As you know, that prevents updating the plugin.

    Are there any hook or filter for that in your plugin? So easy to do but not efficient:

    if ( $currency_detected == ‘TRY’){
    if ( $this->settings->getcookie( ‘wmc_current_currency’ ) == ‘TRY’){
    do_action( ‘wpml_switch_language’, ‘tr’ );
    if(get_locale() == ‘en_US’

You must be logged in to see replies to this topic. Click here to login or register