Title: Remove hard-coded path to wp-content
Last modified: May 26, 2026

---

# Remove hard-coded path to wp-content

 *  Resolved [tompoezie](https://wordpress.org/support/users/tompoezie/)
 * (@tompoezie)
 * [3 weeks, 1 day ago](https://wordpress.org/support/topic/remove-hard-coded-path-to-wp-content/)
 * Can you please update the code, so paths to your plugin are no longer hard-coded.
   
   Use something like `wp_enqueue_script('bpost-custom-script', plugins_url('assets/
   js/bpost-export-message.js', dirname(__FILE__, 2)), array('jquery'), null, true);`
 * See [https://roots.io/wordpress-plugins-that-assume-your-directory-structure/](https://roots.io/wordpress-plugins-that-assume-your-directory-structure/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [bpost](https://wordpress.org/support/users/bpostshippingplugins/)
 * (@bpostshippingplugins)
 * [2 weeks, 2 days ago](https://wordpress.org/support/topic/remove-hard-coded-path-to-wp-content/#post-18925096)
 * Thank you for the feedback. We’ll forward this to our IT department to investigate.
 * Please note that this is not an official support channel. For assistance please
   contact [esolutions@bpost.be](https://wordpress.org/support/topic/remove-hard-coded-path-to-wp-content/esolutions@bpost.be?output_format=md)
 * Regards

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove-hard-coded-path-to-wp-content%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/bpost-shipping-platform/assets/icon-256x256.png?rev=3301610)
 * [bpost-shipping-platform](https://wordpress.org/plugins/bpost-shipping-platform/)
 * [Support Threads](https://wordpress.org/support/plugin/bpost-shipping-platform/)
 * [Active Topics](https://wordpress.org/support/plugin/bpost-shipping-platform/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/bpost-shipping-platform/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/bpost-shipping-platform/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [bpost](https://wordpress.org/support/users/bpostshippingplugins/)
 * Last activity: [2 weeks, 2 days ago](https://wordpress.org/support/topic/remove-hard-coded-path-to-wp-content/#post-18925096)
 * Status: resolved