Click

Writing a plugin for WordPress. Adding to the repository WordPress.org (Part 7)

wordpress-plugin

Contents of the course create a plugin for WordPress

Show Table of Contents »

  1. Introduction, general information (write a plugin for WordPress. Part 1.)
  2. The General Theory (write a plugin for WordPress. Part 2.)
  3. Preparing to Create the page settings (write a plugin for WordPress. Part 3.)
  4. To create a page plugin settings (write a plugin for WordPress. Part 4.)
  5. Functional component (write a plugin for WordPress. Chapter 5.)
  6. Internationalization and Russification (write a plugin for WordPress. Part 6.)
  7. Adding to the repository WordPress.org (write a plugin for WordPress. Chapter 7.)
  8. Source code file plugin for WordPress

Placement of its plug-in repository site WordPress.org

It is time to publish the seventh (but apparently - not the last) part of the guide How to write a plugin for WordPress .

In it, I'll step by step and will explain how to add a plugin written to the repository online WordPress.org.

Algorithm for adding a plug-in repository WordPress.org

  1. Register on WordPress.org to Under plugins . Using the menu on the left to go Developer Center , Select the item Add Your Plugin .
  2. Create a plug-in to the readme.txt file in accordance with the reduced standard . You can also see an example readme.txt , which I did for my wordpress-plugin WordPress Signaturer . After writing the readme.txt for the plugin, you need to check special parser-validator Which may indicate the presence of an error or to approve the file.
  3. After approval of the file validator can continue to add plug-in, fill in the form proposed in paragraph Add Your Plugin. Form must be completed in English. After submitting the form waiting for the approval of the plugin (letter of approval will come at a specified during the registration e-mail.
  4. In a letter received (I received three hours) will be a link to the SVN-repository, which will need to download and our plug-in. SVN - a version control system that tracks all changes to targets. Allows parallel development of multiple versions of a program or make a simple rollback to a previous version. Details can be obtained from Books on Subversion .
    Next we have to take the next set of standard actions:

    • create a local folder in which to store the files written by wordpress-plugin (for example: ~ / myplugin-dir);
    • Perform the procedure SVN Check out (http://svn.wp-plugins.org/myplugin-name - a reference to a repository of letters):
      svn.wp-plugins.org / myplugin-name ~ / myplugin-dir $ Svn co http:// svn.wp-plugins.org / myplugin-name ~ / myplugin-dir
      trunk > A myplugin-dir / trunk
      branches > A myplugin-dir / branches
      tags > A myplugin-dir / tags
      . > Checked out revision 15 472.
    • Copy all files in the plugin directory ~ / myplugin-dir/trunk / and download them to your repository:
      myplugin-dir / trunk /* $ Svn add ~ / myplugin-dir / trunk / *
      example_plugin.php > A trunk / example_plugin.php
      readme.txt > A trunk / readme.txt
    • Go to the directory ~ / myplugin-dir, create a release current version of the plug, telling of the changes (to perform a commit):
      -m 'added version 1.0 of my plug-in' ~ / Myplugin-dir $ svn ci-m 'added version 1.0 of my plug-in'
      my-plugin.php > Adding trunk / my-plugin.php
      readme.txt > Adding trunk / readme.txt
      data . > Transmitting file data.
      . > Committed revision 15 473.

WordPress plugin successfully written and added to the repository

That's it, the plug has been successfully added to the repository wordpress.org!

Now the plugin will be some time hanging in the "new" tab on the statistics will be available to the actual statistics from the page and download the plugin will be a sufficiently large number of transitions to the site specified in the readme.txt as the home page.

Russified plugin you can try to add on mywordpress.ru I want to do it poprobovt and subsequently publish in the guide " How to write a plugin for WordPress "results.

PS As a SVN-client for Windows can be used TortoiseSVN .

More on similar topics:

Category Filed under: SEO , Blogging , Coding | Tag Tags: , , , , , , | Comments No Comments

Leave a Reply