Title: [Plugin: qTranslate] Missing filter site_url
Last modified: August 20, 2016

---

# [Plugin: qTranslate] Missing filter site_url

 *  [davidnde](https://wordpress.org/support/users/davidnde/)
 * (@davidnde)
 * [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-qtranslate-missing-filter-site_url/)
 * I was wondering that some urls create by some plugins don’t get the language 
   subdomain in my qTrasnlate powered wordpress install. This causes Allow-Origin
   errors with some javascript code provided by some other plugins.
 * The reason is, that qTranslate does not add a filter _site\_url_ for transforming
   urls.
    Please be aware, that _bloginfo\_url_ and _site\_url_ refer to two different
   things in wordpress: [difference-between-get-bloginfourl-and-get-site-url](http://wordpress.stackexchange.com/questions/16161/what-is-difference-between-get-bloginfourl-and-get-site-url).
 * I changed
 *     ```
       add_filter('bloginfo_url', 'qtrans_convertBlogInfoURL',10,2);
       ```
   
 * in _qtranslate\_hooks.php_ into
 *     ```
       add_filter('bloginfo_url', 'qtrans_convertBlogInfoURL',10,2);
       add_filter('site_url', 'qtrans_convertURL',10,1);
       ```
   
 * This is doing the trick and in my installation it works without any issues so
   far.
 * I would be glad if you could implement this.
 * Thanks for the great plugin
    David
 * [http://wordpress.org/extend/plugins/qtranslate/](http://wordpress.org/extend/plugins/qtranslate/)

The topic ‘[Plugin: qTranslate] Missing filter site_url’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate.svg)
 * [qTranslate](https://wordpress.org/plugins/qtranslate/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [davidnde](https://wordpress.org/support/users/davidnde/)
 * Last activity: [13 years, 12 months ago](https://wordpress.org/support/topic/plugin-qtranslate-missing-filter-site_url/)
 * Status: not resolved