Anyone who has experience in building wordpress plugin using eclipse PDT?
My situation is:
- I need to build plugin that extend another plugin (look at it as premium version from another plugin)
- I already created project
plugin core
(the original plugin) by importing from svn repository - I created eclipse library called
wordpress
and added it toplugin core
project. - I created another project
plugin extender
which will host scripts I created.
The problem is, how to easily test it to wordpress, without having to manually copy-paste those project to wp-content/plugins
? Is there anyway to automatically copy those files to wp-content/plugins
? Or, do you guys have another solutions to this problem?
As a side note, I’m working on windows 7. I’m aware of windows’s mklink
. However, my htdocs in on FAT32 partition and I’m in situation where I have to use Windows in the following months.
Create WordPress as a project. I have several such projects, trunk, old versions ⦠for the following, I just use a project named WP Latest Final.
You can use the standard installation with
/wp-content/plugins
. I put mywp-content
directory in a Dropbox and tell WP via wp-config.php where to search for it.Create a new PHP project for each of your plugins. Use Create project from existing source and point to the plugin directory in
/wp-content/plugins
.Click Next in the project wizard, and go to the Projects tab. Choose Add ⦠WP Latest Final.
Select Access Rules and exclude
wp-admin/load-scripts.php
andwp-admin/load-styles.php
. Hat tip to @hakre.Add more projects as you need, other plugins, theme projects etc.
Click Finish. Done.
If you have installed Egit, you probably want to create a new Git project now to get independent from Eclipseâs history tracking.
Eclipse » Aptana
Just a short addition for all those using Aptana.
When you already got a project that is (physically/on disk) outside your WordPress development copy, then simply go to