Support » Fixing WordPress » Plugin use of WP_CONTENT_DIR

  • The Codex page that discusses how to determine content and plugin directories states this:

    “WordPress makes use of the following constants when determining the path to the content and plugin directories. These should not be used directly by plugins or themes, but are listed here for completeness.”

    The ‘constants’ in question are WP_CONTENT_DIR, WP_CONTENT_URL, WP_PLUGIN_DIR and WP_PLUGIN_URL.

    There are perfectly serviceable core functions to access the URL constants (content_url() and plugins_url()) but how is one to determine the content and plugin DIR constants without accessing the constants directly?

    Is this an error in the codex or am I missing the functions in the core code (or are the functions themselves missing)?

  • The topic ‘Plugin use of WP_CONTENT_DIR’ is closed to new replies.