Easier Plugin Development by Moving Plugin Directory

If you’re a experienced programmer you’re testing your programs not only with the latest version of WordPress but also with some older versions since there are many dated installations. So you have several versions installed on your development server and want to test your newly created code with every single version.

You could copy your plugin files to all installed version’s plugin directory manually every time you change the code… but you’re a programmer, so this is no option, is it?
If your dev server works under a *nix system you probably have tried to use symbolic links but it didn’t work. This is not a bug of WordPress but of PHP. So this does not work either.

Fortunately WordPress defines two constants which can help you to simplify things nonetheless: WP_PLUGIN_DIR and WP_PLUGIN_URL. These constants point to the plugin directory of the respective WordPress installation. They are defined since WordPress 2.6 and supporting older versions is most likely unnecessary

 

Hier gehts zum Original Thread und weitere Erläuterungen

 

Quelle: wpengineer.com

 

TEIL ES:

Hinterlasse eine Antwort

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Time limit is exhausted. Please reload CAPTCHA.