Title: Replace WP_PLUGIN_URL with plugins_url()
Last modified: September 1, 2016

---

# Replace WP_PLUGIN_URL with plugins_url()

 *  [Aboobacker.](https://wordpress.org/support/users/abooze/)
 * (@abooze)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/replace-wp_plugin_url-with-plugins_url-1/)
 * Hi,
 * **A note to the developer to improve the plugin:**
 * When loading the plugin directory URL use `plugins_url()` instead of `WP_PLUGIN_URL`
 * Eg: `define('advps_url',plugins_url()."/advanced-post-slider/");`
 * Source: advanced-post-slider.php, line# 22
 * Because `WP_PLUGIN_URL` doesn’t work on SSL properly. And because of loading 
   non-SSL resources on SSL environment, the slider doesn’t work.
 * [https://wordpress.org/plugins/advanced-post-slider/](https://wordpress.org/plugins/advanced-post-slider/)

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

 *  [Luca M.](https://wordpress.org/support/users/lmaiorino/)
 * (@lmaiorino)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/replace-wp_plugin_url-with-plugins_url-1/#post-7544565)
 * Same problem, same solution.
    I would appreciate the improvement in the next 
   update
 * Thanks
 *  [ancawonka](https://wordpress.org/support/users/ancawonka/)
 * (@ancawonka)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/replace-wp_plugin_url-with-plugins_url-1/#post-8470479)
 * I just came here to let people know about this. I’ve updated this value in my
   own version of the plugin, and hopefully this will be updated in a future release.

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

The topic ‘Replace WP_PLUGIN_URL with plugins_url()’ is closed to new replies.

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

 * 2 replies
 * 3 participants
 * Last reply from: [ancawonka](https://wordpress.org/support/users/ancawonka/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/replace-wp_plugin_url-with-plugins_url-1/#post-8470479)
 * Status: not resolved