Wordpress Plugin Development - Part 1

amil_bd

Junior Member
Joined
Dec 27, 2011
Messages
114
Reaction score
102
**Moderator-----First of all i am really sorry if i posted in wrong section. Please moved this post to desired section**

Intro:

Hello, Now Wordpress is a popular CMS. It has thousands of plugins and thousand of themes. We use different kinds of plugin. But we don't even know how to develop this plugin. I will teach you accordingly.

Essential tools:
  1. Notepad++
  2. Mozilla firefox/Google Chrome.
  3. Firebug Extension (Search For both Firefox/ Chrome as you want)
  4. Web Developer Extension (Search For both Firefox/ Chrome as you want)
  5. Xampp / Wampp with WordPress Installation
  6. FTP Client. Example- Filezilla.

What is Plugin?
Basically wordpress runs on PHP scripts which changed its functionality. Basically it is a feature and to get some extra feature we add/use plugin.There is no limitation or size of building plugin and get it to work.

Plugin Folder Structure:
Every wordpress plugin installs in this directory wp-content/plugins Directory. Some plugins contains one PHP file. No matter how many files you have you should put it in one folder. Here's how:
  1. Plugin Folder (Your folder name; no space or special character).
  2. Main (.php) file
  3. JS Folder
  4. CSS Folder
  5. PHP / Include Folder

For Example:

Blackhatworld Spam protection Plugin

  1. index.php
  2. JS
  3. CSS
  4. Images
  5. Uninstall.php

Plugin Header:

Without plugin header wordpress don't recognize your plugin. Plugin header is the only function that wordpress cares about. Plugin header contains the details of the plugin you are going to develop.

Example:

<?php /* Plugin Name: Blackhatworld Spam Protection Plugin URI: http://blackhatworld.com/ Description: This Is A Demo Description of your plugin. Version: 1.0 Author: http://blackhatworld.com/ Author URI: http://blackhatworld.com/username License: GPL2 */ ?>

If you want license you can also put in your php code. Here's how----



<?php /* Copyright YEAR PLUGIN_AUTHOR_NAME (email : PLUGIN AUTHOR EMAIL) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2, as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ ?>

ok.
Today I am short on time. Will come back again with more in part 2.
Haapy Exploring guys.
**Moderator----Finally Ii am really sorry if i posted in wrong category. Please moved this post to desired section**
 
If you are plugin developer could you fix wp plugin plz? It's Draft scheduler plugin - it doesn't schedule anything on the dates with 0 - 10, 20, 30. Could you PM me if interested plz with your price
 
If you are plugin developer could you fix wp plugin plz? It's Draft scheduler plugin - it doesn't schedule anything on the dates with 0 - 10, 20, 30. Could you PM me if interested plz with your price
What version you are using? Can you pls give me a specific links. I will help you out. No charge needed.
 
Thank you for starting this thread. Subscribed.

I am making a slider plugin and would like to know how to add multiple images using wp media uploader and add an 'effects' select box and call it in the html markup or jquery.
Thank u for ur help
 
I prefer to use sublimetext.

The best way to familiarize yourself is to just download a plugin and have a look at it, although a lot of plugins have php that's almost unreadable.
 
I prefer to use sublimetext.

The best way to familiarize yourself is to just download a plugin and have a look at it, although a lot of plugins have php that's almost unreadable.

Downloaded a lot of slider plugins from wp repo but it didn't help. I forgot to mention i have very limited knowledge of coding. I am downloading the tuts+ plugin development tutorial rite now. May be that will help!
 
Back
Top