Title: WP_PLUGIN_URL
Last modified: August 21, 2016

---

# WP_PLUGIN_URL

 *  [Tom J Nowell](https://wordpress.org/support/users/tjnowell/)
 * (@tjnowell)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wp_plugin_url/)
 * Replacing line 95:
 * `wp_enqueue_style( 'snack-bar', WP_PLUGIN_URL . "/snack-bar/snack-bar$suffix.
   css", array(), '20101112' );`
 * With this:
 * `wp_enqueue_style( 'snack-bar', plugins_url( "snack-bar$suffix.css", __FILE__),
   array(), '20101112' );`
 * Fixes an issue we’ve been having with using this in mu-plugins ( PHP file including
   the main plugin file so we can have subdirs ).
 * The `WP_PLUGIN_URL` constant is marked as deprecated and should be removed
 * [http://wordpress.org/plugins/snack-bar/](http://wordpress.org/plugins/snack-bar/)

The topic ‘WP_PLUGIN_URL’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/snack-bar.svg)
 * [Snack Bar](https://wordpress.org/plugins/snack-bar/)
 * [Support Threads](https://wordpress.org/support/plugin/snack-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/snack-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/snack-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/snack-bar/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Tom J Nowell](https://wordpress.org/support/users/tjnowell/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/wp_plugin_url/)
 * Status: not resolved