Title: Patch: Use WP_PLUGIN_DIR constant instead of hardcoded paths
Last modified: December 5, 2016

---

# Patch: Use WP_PLUGIN_DIR constant instead of hardcoded paths

 *  [thomasbachem](https://wordpress.org/support/users/thomasbachem/)
 * (@thomasbachem)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/patch-use-wp_plugin_dir-constant-instead-of-hardcoded-paths/)
 * The hardcoded path to FacebookLocales.xml in lines 168 & 181 of settings-page.
   php should be modified from
 *  `ABSPATH . 'wp-content/plugins/wonderm00ns-simple-facebook-open-graph-tags/includes/
   FacebookLocales.xml`
 * to
 *  `WP_PLUGIN_DIR . '/wonderm00ns-simple-facebook-open-graph-tags/includes/FacebookLocales.
   xml'`
 * to allow for custom wp-content paths.

Viewing 1 replies (of 1 total)

 *  [Marco Almeida | Webdados](https://wordpress.org/support/users/webdados/)
 * (@webdados)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/patch-use-wp_plugin_dir-constant-instead-of-hardcoded-paths/#post-8533965)
 * Thanks for the patch. It will be included on the next version.

Viewing 1 replies (of 1 total)

The topic ‘Patch: Use WP_PLUGIN_DIR constant instead of hardcoded paths’ is closed
to new replies.

 * ![](https://ps.w.org/wonderm00ns-simple-facebook-open-graph-tags/assets/icon-
   256x256.gif?rev=2891184)
 * [Open Graph and Twitter Card Tags](https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wonderm00ns-simple-facebook-open-graph-tags/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/)
 * [Active Topics](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wonderm00ns-simple-facebook-open-graph-tags/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Marco Almeida | Webdados](https://wordpress.org/support/users/webdados/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/patch-use-wp_plugin_dir-constant-instead-of-hardcoded-paths/#post-8533965)
 * Status: not a support question