After your plugin is approved for the WordPress.org plugin directory, you will receive SVN access details.
The SVN repository for WordPress.org plugins has the following structure:
/assets/ - Plugin assets (banner, icon, screenshots)
/tags/ - Tagged releases (1.0.0, 1.1.0, etc.)
/trunk/ - Current development version
- After receiving SVN access, check out the repository:
svn checkout https://plugins.svn.wordpress.org/wp-devlog/
cd wp-devlog- Copy your plugin files to the
/trunkdirectory:
# From your development directory
cp -R * /path/to/svn/wp-devlog/trunk/- Copy assets to the
/assetsdirectory:
cp -R assets/* /path/to/svn/wp-devlog/assets/- Add all files to SVN:
cd /path/to/svn/wp-devlog/
svn add trunk/* --force
svn add assets/* --force- Commit the changes:
svn commit -m "Initial plugin version"When you release a new version:
-
Update version numbers in:
- devlog.php (Plugin header)
- readme.txt (Stable tag)
- Update changelog in readme.txt
-
Commit the changes to trunk:
svn commit -m "Update to version X.Y.Z"- Create a new tag:
svn copy https://plugins.svn.wordpress.org/wp-devlog/trunk https://plugins.svn.wordpress.org/wp-devlog/tags/X.Y.Z -m "Tagging version X.Y.Z"To update banners, icons, or screenshots:
cd /path/to/svn/wp-devlog/
svn commit assets/ -m "Update plugin assets"Always ensure your plugin follows the WordPress.org Plugin Guidelines.
Common issues to avoid:
- Make sure all code is GPL compatible
- Do not include obfuscated code
- Make sure the plugin works with the latest WordPress version
- Do not track users without consent
- Keep the SVN repository clean and well-organized