**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:
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:
For Example:
Blackhatworld Spam protection Plugin
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**
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:
- Notepad++
- Mozilla firefox/Google Chrome.
- Firebug Extension (Search For both Firefox/ Chrome as you want)
- Web Developer Extension (Search For both Firefox/ Chrome as you want)
- Xampp / Wampp with WordPress Installation
- 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:
- Plugin Folder (Your folder name; no space or special character).
- Main (.php) file
- JS Folder
- CSS Folder
- PHP / Include Folder
For Example:
Blackhatworld Spam protection Plugin
- index.php
- JS
- CSS
- Images
- 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**