WP 2.6 allows sites to move the wp-content directory around, so plugin developers like me can’t depend on them being in a predictable location. We can look to the WP_CONTENT_DIR and WP_PLUGIN_DIR constants for answers, but a better solution is likely to use the X_url() functions. The most useful of those is likely to be [...]
Posted October 21, 2008 by Casey
Categories: Dispatches, Technology. Tags: constants, functions, path, paths, plugins_url, wordpress, wp-content, WP_CONTENT_DIR. Be the first one.
Ozh’s tutorial explains the details, but the short story is that we’ll soon get WP_CONTENT_URL and WP_CONTENT_DIR constants. And this is more than just convenience, 2.6 allows site admins to put those directories anywhere they want, so the constants will be the only reliable way of finding that info.
Posted July 14, 2008 by Casey Bisson
Categories: Dispatches, Technology. Tags: development, paths, plugins, wordpress, WordPress 2.6, wp-content. 2 Comments.