The framework uses the
Plugin Prefix header field to automatically define the following constants. The example below assumes that the prefix in the header fields has been set to
TD_VERSION: the current version of the plugin.
TD_PLUGIN_FILE: the full path to the plugin's file.
TD_PLUGIN_BASE: path to a plugin file relative to the plugins directory, without the leading and trailing slashes.
TD_PLUGIN_DIR: the filesystem directory path (with trailing slash) for the plugin.
TD_PLUGIN_URL: the URL directory path (with trailing slash) for the plugin.