gwycon.com
Silverlight, WPF and C# .NET development
User NamePassword

Constants

WordPress Defined Paths

Here is a list of some common WordPress directory path constants:

  • ABSPATH
  • PLUGINDIR
  • WP_PLUGIN_DIR

Examples

Some Path Examples
echo 'ABSPATH = '.ABSPATH;
echo 'PLUGINDIR = '.PLUGINDIR;
echo 'WP_PLUGIN_DIR = '.WP_PLUGIN_DIR;
 

These constant produce output similar to the following:

ABSPATH = /var/www/html/
PLUGINDIR = wp-content/plugins
WP_PLUGIN_DIR = /var/www/html/wp-content/plugins

The exact output will be different from server to server, and whether you have your WordPress Blog installed into a sub directory or not.