1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Plugin Development - Part 1

Discussion in 'Social Networking Sites' started by amil_bd, May 12, 2013.

  1. amil_bd

    amil_bd Junior Member

    Joined:
    Dec 27, 2011
    Messages:
    114
    Likes Received:
    69
    Occupation:
    Works at father's hotel.
    Location:
    From M.A.R.S.
    Home Page:
    **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**
     
  2. oliva999

    oliva999 Power Member

    Joined:
    Feb 6, 2010
    Messages:
    572
    Likes Received:
    68
    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
     
  3. OneOnOne

    OneOnOne BANNED BANNED

    Joined:
    Apr 29, 2013
    Messages:
    14
    Likes Received:
    2
    I am eager to learn more.. Subscribed !!!
     
  4. amil_bd

    amil_bd Junior Member

    Joined:
    Dec 27, 2011
    Messages:
    114
    Likes Received:
    69
    Occupation:
    Works at father's hotel.
    Location:
    From M.A.R.S.
    Home Page:
    What version you are using? Can you pls give me a specific links. I will help you out. No charge needed.
     
  5. amil_bd

    amil_bd Junior Member

    Joined:
    Dec 27, 2011
    Messages:
    114
    Likes Received:
    69
    Occupation:
    Works at father's hotel.
    Location:
    From M.A.R.S.
    Home Page:
    Hold on. Will come with part 2 shortly.
     
  6. alternatesword

    alternatesword Jr. VIP Jr. VIP

    Joined:
    Aug 25, 2012
    Messages:
    2,324
    Likes Received:
    484
    Location:
    scabbard
    Home Page:
  7. amil_bd

    amil_bd Junior Member

    Joined:
    Dec 27, 2011
    Messages:
    114
    Likes Received:
    69
    Occupation:
    Works at father's hotel.
    Location:
    From M.A.R.S.
    Home Page:
    Thankyou for your suggestion. I already mentioned that if this post is in wrong section, moderator can move this post to relevant topics at blackhatworld wordpress section.
     
  8. shubh

    shubh Newbie

    Joined:
    Feb 3, 2013
    Messages:
    21
    Likes Received:
    3
    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
     
  9. Sam Woods

    Sam Woods Junior Member

    Joined:
    Mar 5, 2013
    Messages:
    132
    Likes Received:
    32
    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.
     
  10. shubh

    shubh Newbie

    Joined:
    Feb 3, 2013
    Messages:
    21
    Likes Received:
    3
    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!