• +40 (750) 43 77 44 [email protected]
Mon - Fri | 09:00 - 16:00
WhatsApp
Blog
DevSnit
  • Home
  • About us
  • Services
    • Digital Marketing
      • Search Engine Optimisation (SEO)
      • Search Engine Marketing (SEM)
      • SEO Content Writing Services
      • Local SEO
      • Technical SEO
      • Link Building Services
      • PPC Advertising
      • Digital Marketing Strategy
    • Web Services
      • Web development
      • Custom Web Design
      • WordPress Web Design
      • eCommerce Web Design
      • GDPR Solutions
      • eMail Marketing Services
      • SMS Marketing Services
      • Website Hosting Services
    • Social Media Marketing
      • Social Media Brand Management
      • Social Media Advertising
      • Social Media Reputation Management
      • Social Media Job Ads
    • Innovation
      • Customer relationship management (CRM)
      • Daily Process Automation
      • Email Automation
      • Leads Workflow Automation
      • AI Content Writing and Publishing
      • SMS Automation
  • Case studies
  • Contact
  • English
    • Română
    • English
Instant quote
Search
Quote
  • Home
  • About us
  • Services
    • Digital Marketing
      • Search Engine Optimisation (SEO)
      • Search Engine Marketing (SEM)
      • SEO Content Writing Services
      • Local SEO
      • Technical SEO
      • Link Building Services
      • PPC Advertising
      • Digital Marketing Strategy
    • Web Services
      • Web development
      • Custom Web Design
      • WordPress Web Design
      • eCommerce Web Design
      • GDPR Solutions
      • eMail Marketing Services
      • SMS Marketing Services
      • Website Hosting Services
    • Social Media Marketing
      • Social Media Brand Management
      • Social Media Advertising
      • Social Media Reputation Management
      • Social Media Job Ads
    • Innovation
      • Customer relationship management (CRM)
      • Daily Process Automation
      • Email Automation
      • Leads Workflow Automation
      • AI Content Writing and Publishing
      • SMS Automation
  • Case studies
  • Contact
  • English
    • Română
    • English
How to upload wp plugin to repository

Uploading a new WordPress plugin to SVN repository – 6 things to consider

Mario Iliuta2023-12-10T04:46:20+00:00
Mario Iliuta Tutorials plugin creation, wordpress svn, wp plugin 0 Comments

In this article you will learn how to upload a new approved plugin or update an existing WordPress plugin to svn repository.

Table of Contents

  • 1. Adding a new plugin to WordPress
    • Screenshots
    • Creating banners
    • Creating icons
  • 2. Upload to SVN repository:
  • 3. Adding new files to SVN.
  • 4. Updating existing files on SVN.
  • 5. Deleting a file from SVN
  • 6. Updating the plugin after downloading it from SVN.

1. Adding a new plugin to WordPress

This is how you can add a new plugin to WordPress

Go to the following link to upload your plugin: https://wordpress.org/plugins/developers/add/

Screenshots

The screenshots go in the /assets folder the filename for the screenshot should be screenshot-1.png, screenshot-2.png and the number corresponds to the screenshot description number in the readme.txt file.

== Screenshots ==

1-This is the description of screenshot-1.png
2-This is the description of screenshot-2.png

Creating banners

We will put the banner in the /assets folder
You need to create a banner with the size below and put it in the assets folder.

banner-772x250.png

Creating icons

We will put the icon images in the /assets folder You
should create two icons with the dimensions below and put them in the assets folder

icon-128x128.png
icon-256x256.png

2. Upload to SVN repository:

This is how you can upload to svn repository

SVN stands for Sub Version. It is a version control system (similar to git).
If you have a Mac, you can install svn using the command:

brew install svn

Link to learn how to use svn: https://developer.wordpress.org/plugins/wordpress-org/how-to-use-subversion/

Go to the directory with the plugin on the terminal:
# here co means checkout

cd ~/plugin-dir                                         # Access the folder that contains your plugin
mkdir my-local-dir                                      # Create a new folder named my-local-dir 
cd my-local-dir
svn co https://plugins.svn.wordpress.org/yourpluginname # Load directories from the repository in the new folder
cd ..                                                   # Go back to your plugin's folder
cp yourplugin.php my-local-dir/trunk/                   # Copy the main plugin file from the plugin directory to my-local-dir/trunk
cp style.css my-local-dir/trunk/                        # Copy all other files and directories from your plugin directory to my-local-dir/trunk
cp custom-functions.php my-local-dir/trunk/             # Copy the custom-functions file from your plugin directory to my-local-dir/trunk
cp readme.txt my-local-dir/trunk/                       # Copy readme.txt file to my-local-dir/trunk
cp screenshot-1.png my-local-dir/assets/
cp icon-128x128.png my-local-dir/assets/
cp icon-256x256.png my-local-dir/assets/
cd my-local-dir/yourplugin-dir-name                     # Go to your plugin folder
svn add trunk/*                                         # Add all files to svn trunk repo
svn add assets/*                                        # Add all files to svn assets repo
svn ci -m 'Loading the first version of the plugin'     # Publish the files you uploaded to the /truck directory from the local svn repo to the online svn repo.
# now enter your wordpress.org password

3. Adding new files to SVN.

This is how you can add new files

cd ~/plugin-dir
cp yournewfile.php my-local-dir/yourplugin-dirname/trunk/  ( or my-local-dir/yourplugin-dirname/assets/ any directory you want to add )
cd my-local-dir/yourplugin-dirname
svn up
svn stat
svn add trunk/* --force
svn stat
svn ci -m 'Add new file'               # Publish changes to the svn repository

4. Updating existing files on SVN.

This is how you can update existing files

cd my-local-dir                        # access and edit files
svn up
svn stat
svn add trunk/* --force
svn stat
svn ci -m 'Actualizare fisiere'        # Publish changes to the svn repository

5. Deleting a file from SVN

This is how you can delete a file from SVN

cd my-local-dir/yourplugin-dir-name    # Go to the desired file or folder and delete it using svn delete filename
svn delete filename
cd my-local-dir
svn up
svn stat
svn add trunk/* --force
svn stat
svn ci -m 'Add new file'               # Publish changes to the svn repository

6. Updating the plugin after downloading it from SVN.

This is how you can update the plugin after you have downloaded it from SVN

# Download your existing plugin plugin from wordpress after you have made all the changes to your file go to your local updated dir
mkdir my-local-dir                                      # Create a new directory my-local-dir
cd my-local-dir
svn co https://plugins.svn.wordpress.org/your-plugin-slug # upload svn repo directories to your my-local-dir

# Now make the necessary updates
cd my-local-dir/yourplugin-dirnme
svn up
svn stat
svn add trunk/* --force
svn stat
svn ci -m 'Add new file'               # Publish changes to the svn repository

For more tutorials, follow our blog posts here.

3.3/5 - (3 votes)

Share this post

Facebook Twitter LinkedIn Google + Email

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Curiosity Corner

Whether you're seeking to understand the 'why' behind the 'what' or just looking to indulge your thirst for learning, this space is crafted for you.

Recent posts

  • How to Install an SSL Proxy Server on Linux with User Authentication November 13, 2024
  • SEO Optimization: Increase your online visibility and get results in 2024 February 29, 2024
  • What is an email marketing campaign and how can you run one February 27, 2024
  • How to run Google Ads campaigns: step-by-step guide February 1, 2024
  • N8N Workflows & Credentials Migration: Export & Import Tutorial January 15, 2024

automation container_config crm software docker email marketing email promo google ads google analytics 4 google seo google tag manager google tracking gtm gtm account improve form conversion manage business n8n n8n migration newsletter onpage seo pay per click plugin creation ppc ppc campaign proxy server ubuntu search engine optimization sem seo optimization seo tricks server side server side tracking setup campaigns ssl proxy server technical seo ubuntu ubuntu 22 website seo wordpress svn wp plugin

Business development solutions

Contact us

SEO, AdWords, Automatizari, Dezvoltare Web - Solutii simple pentru conexiuni complexe

Devsnit Ignited S.R.L., your ultimate destination for unparalleled digital marketing solutions. Attract, impress and convert more leads online and get results with Devsnit.

WhatsApp
+40 (750) 43 77 44
[email protected]
Str. Blaj, Nr. 6, 800472, Galati

Working hours

Mon - Fri | 09:00 - 16:00
Sat - Sun | INCHIS

Useful links

  • Contact us
  • Services
  • Privacy Policy
  • Terms and conditions
  • ANPC

©2023 DEVSNIT - Simple solutions, complex connections - All rights reserved

Instant quote Contact us