Title: WP_PLUGIN_URL problem on multisite install
Last modified: August 30, 2016

---

# WP_PLUGIN_URL problem on multisite install

 *  Resolved [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/)
 * hello josh,
 * first, thanks a lot for providing such a nice plugin 😉
 * i use your plugin also on a wordpress multisite install. i also mostly make use
   of the column-style.css
 * i also use the MU domain mapping plugin to run different domains on the multisite
   install
 * let’s say the main domain is maindomain.com and the others are called sub1.com,
   sub2.com and so on …
 * now i use wp-edit plugin on sub1.com and the column-style.css get’s then included
   via the maindomain.com
 * if i look at the source code of sub1.com domain i see the following:
 * `http://maindomain.com/sub1/wp-content/plugins/wp-edit/css/column-style.css?ver
   =4.3.1`
 * so it get’s included via the maindomain.com
 * in your /includes/functions.php i see the following code at line 319
 *     ```
       function wp_edit_column_stylesheet() {
   
       		wp_register_style('wp_edit_column-styles', WP_PLUGIN_URL.'/wp-edit/css/column-style.css');
       		wp_enqueue_style('wp_edit_column-styles');
       	}
       ```
   
 * the constant WP_PLUGIN_URL is used here, which is only sub-optimal. also the 
   codex gives a hint, that it should not be used by plugin devs.
 * [https://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Constants](https://codex.wordpress.org/Determining_Plugin_and_Content_Directories#Constants)
 * if i then replace the constant WP_PLUGIN_URL with the function call plugins_url()
   i get the proper domain
 *     ```
       function wp_edit_column_stylesheet() {
   
       		wp_register_style('wp_edit_column-styles', plugins_url().'/wp-edit/css/column-style.css');
       		wp_enqueue_style('wp_edit_column-styles');
       	}
       ```
   
 * and the column-styles.css is then included via the proper domain, sub1.com
 * `http://sub1.com/wp-content/plugins/wp-edit/css/column-style.css?ver=4.3.1`
 * it would be really awesome if you could have a look into this and perhaps update
   with the next release?
 * thanks again josh for such nice work 😉
 * greetings & all the best
    becki
 * [https://wordpress.org/plugins/wp-edit/](https://wordpress.org/plugins/wp-edit/)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/#post-6865693)
 * Hello,
    I apologize for my delay.
 * What an amazing topic!! I mean, you did all the “leg work”; made the correct 
   assumptions; and drew the correct conclusion. I’m very impressed… Thank you!
 * You are 100% correct. The usage of the constant as probably done in development;
   and I missed it when making the plugin “live”.
 * I will certainly address this in the next plugin release.
 * Thanks again, and please have a wonderful holiday season.
 *  Thread Starter [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/#post-6865699)
 * hello josh,
 * i’m impressed by your plugin! was a pleasure i could ‘help you out’ 😉
 * season greetings
    becki
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/#post-6865778)
 * Update being released today. Thanks again!
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/#post-6865793)
 * I’m going to mark this topic as resolved. Please let me know if the issue persists
   after the latest update.
 * Thank you.
 *  Thread Starter [Becki Beckmann](https://wordpress.org/support/users/becki/)
 * (@becki)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/#post-6865794)
 * hello josh,
 * yes, all works fine after your recent update!
 * ups … seems that i have forgotten to mark this as resolved.
    glad, you finally
   did 😉
 * thanks & greetings
    becki
 *  Plugin Author [Josh](https://wordpress.org/support/users/josh401/)
 * (@josh401)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/#post-6865798)
 * MUCH appreciated 🙂
    Thanks Becki.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘WP_PLUGIN_URL problem on multisite install’ is closed to new replies.

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

 * 6 replies
 * 2 participants
 * Last reply from: [Josh](https://wordpress.org/support/users/josh401/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/wp_plugin_url-problem-on-multisite-install/#post-6865798)
 * Status: resolved