Posts Tagged ‘Code’

Aptana Screenshot

WordPress - Return URL

I already talked in my article Determine Path To Plugin and Content Directories about the possibilities how to keep functions in themes or plugins free from error if you rename a folder, for example wp-content.
Since version 2.6 you can also solve this problem pretty easy with another function.

WordPress Logo

Determine Path To Plugin and Content Directories

If you like to write a plugin and you want to keep it downward compatible, then check beforehand the constants, because since WordPress version 2.6 you can rename the folder wp-content and this will also change the path to the plugin folder.
Just a few lines of code are enough and you can work with the [...]