Thursday, February 9, 2023

Upload plugin to wordpress account

 Hello

Today I will explain how to upload plugin to wordpress account.

First make your plugin ready and remove all unnecessary codes, comments from your code. Make proper structure for files. 

  1. Install SVN to your system. 
  2. now make like this path : /var/lib/svn/plugin_name/trunk
  3. Open terminal and avigate to the folder where you placed your plugin files (/var/lib/svn/plugin_name/trunk).
  4. Use the command svn add to add your plugin files to the local repository. For example, svn add * to add all the files.
  5. Use the command svn commit to commit your changes to the local repository. In the commit message, include a brief description of the changes you made to the plugin. For example, svn commit -m "Initial plugin upload"
  6. Use the command svn update to push your changes to the WordPress plugin repository. The URL should be https://plugins.svn.wordpress.org/plugin_name
  7. After this command you'll be prompted for your wordpress.org username and password, enter them to complete the upload process
  8. Once the upload is complete, you should be able to see your plugin listed in the WordPress plugin repository.
  9. Please note that if the plugin name you are trying to use is already taken, you will receive an error message. In this case, you will need to choose a different plugin name.
  10. Also note that, once you have uploaded a plugin to the WordPress plugin repository, you will need to continue using SVN to update the plugin.


-----------------------------------------------------------------------------------------------------

Delete some folder

  1. svn delete Under-Construction
  2. svn commit -m "Deleting Under-Construction"

------------------------------------------------------------------------------------------------------

Update Plugin:-

  1. Paste all your files here to yout plugin svn folder. For example: /var/lib/svn/under-construction-for-specific-pages/trunk
  2. Open a terminal and go to your plugin svn path. For example: cd var/lib/svn/under-construction-for-specific-pages/trunk
  3. Run this command : svn update *
  4. it will update all files automatically
  5. after successfull updation, run this command : svn commit -m "updating Under-Construction"
  6. Now check your wordpress plugin path, It will take 10-15 minutes to get update.


No comments:

Post a Comment