Strategy On Building Plugin Using Eclipse

  1. 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 my wp-content directory in a Dropbox and tell WP via wp-config.php where to search for it.

  2. 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.

    enter image description here

  3. Click Next in the project wizard, and go to the Projects tab. Choose Add … WP Latest Final.

    enter image description here

  4. Select Access Rules and exclude wp-admin/load-scripts.php and wp-admin/load-styles.php. Hat tip to @hakre.

    enter image description here

  5. Add more projects as you need, other plugins, theme projects etc.

  6. 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.

Leave a Comment

error code: 523