Title: Change request
Last modified: August 30, 2016

---

# Change request

 *  Resolved [rjvandoesburg](https://wordpress.org/support/users/rjvandoesburg/)
 * (@rjvandoesburg)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/change-request-3/)
 * Hello,
 * I’ve just tried installing your plugin and am running into some trouble. After
   some digging I found the following:
    `$wplc_basic_plugin_url = get_option('siteurl')."/
   wp-content/plugins/wp-live-chat-support/";` (wp-live-chat-support.php:259)
 * Now this isn’t the most optimal way to get the plugin url because as it happens,
   we installed WordPress in a sub directory and that changes our site url (home
   url is unaffected). so now it tries to get files from domain.ext/wp-install-folder/
   wp-content/plugins/wp-live-chat-support
 * Another no-no is hardcoding the wp-content folder (some of our sites have that
   on a different location as well).
 * To prevent these mistakes WordPress added functions to get the correct locations,
   for plugins: it would be `plugin_dir_url( __FILE__ )` and for content: `content_url()`
 * see [https://codex.wordpress.org/Determining_Plugin_and_Content_Directories](https://codex.wordpress.org/Determining_Plugin_and_Content_Directories)
   for more information.
 * Anyhow, getting back to my request. I would like to ask you to look into the 
   way you generate the locations for various request so more people can be happy
   and use your plugin with their wacky way of using WordPress.
 * [https://wordpress.org/plugins/wp-live-chat-support/](https://wordpress.org/plugins/wp-live-chat-support/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP-LiveChat](https://wordpress.org/support/users/wp-livechat/)
 * (@wp-livechat)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/change-request-3/#post-6473980)
 * Hi there.
 * Sorry for only getting back to you now.
 * Agreed! So sorry about that! We will have this fixed in the next update we release.
 * I’m not sure I understand what you mean by looking into the way we generate the
   locations for various requests? Would you mind explaining further?

Viewing 1 replies (of 1 total)

The topic ‘Change request’ is closed to new replies.

 * ![](https://ps.w.org/wp-live-chat-support/assets/icon-256x256.png?rev=2405258)
 * [3CX Free Live Chat, Calls & Messaging](https://wordpress.org/plugins/wp-live-chat-support/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-live-chat-support/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-live-chat-support/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-live-chat-support/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-live-chat-support/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-live-chat-support/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP-LiveChat](https://wordpress.org/support/users/wp-livechat/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/change-request-3/#post-6473980)
 * Status: resolved