awesomemotive / EDD-License-handler

License / updater handler for Easy Digital Downloads extensions
55 stars 29 forks source link

Filter $api_params or add 'locale' => get_locale() to support multilang version details in EDD_SL_Plugin_Updater.php #28

Open yoancutillas opened 7 years ago

yoancutillas commented 7 years ago

Hi,

I am using a multilang server site (where Software Licensing is installed). As a result, when an update is available on a client site (where EDD_SL_Plugin_Updater.php is used), it always retrieves my plugin version details in the default language.

All I need is to pass the client locale in $api_params before sending wp_remote_post().

Is it possible to apply a filter on $api_request array or add the 'locale' => get_locale() element (lines 342 and 406 on EDD_SL_Plugin_Updater.php v1.6.10)?

Thanks,