NTS Forums

Please login or register.

Login with username, password and session length
 

News:

Welcome to the Newtek Technology Services Forum!


Author Topic: I want to write my own wordpress plugin  (Read 3990 times)

Offline xarzu

  • Hosting Newbie
  • *
  • Posts: 11
  • Karma: +0/-0
I want to write my own wordpress plugin
« on: January 30, 2010, 05:47:27 AM »
I want to write my own wordpress plugin.

Does anyone know where I can find a lits of hooks and filters and what they do?

Also, is there a book that is a good reference for people who want to write wordpress plugins?

Offline KevinS

  • Jr. Member
  • **
  • Posts: 155
  • Karma: +7/-0
Re: I want to write my own wordpress plugin
« Reply #1 on: January 31, 2010, 03:19:08 AM »
Well, it all depends.

Based on the placement of this thread (in Web Design Forum instead of PHP Forum), that leads me to believe you are not familiar with PHP.

If this is the case, the first step would be to learn PHP. If its your first programming language, it may be hard to wrap your head around (we all have trouble with  our firsts :) )
Heres a pretty good beginners PHP tutorial:
http://www.w3schools.com/PHP/DEfaULT.asP

After learning PHP (which would take you some time), heres a link to Wordpress's site with tutorials on creating Wordpress plugins.
http://codex.wordpress.org/Writing_a_Plugin

Dont expect this to be a quick weekend job. Its going to take you a lloonngg time to learn PHP.
In the edible parade, I'm the one sitting on top of the giant meatball.

Offline Webdesignweb

  • Hosting Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: I want to write my own wordpress plugin
« Reply #2 on: July 13, 2017, 02:39:44 AM »
I want to write my own wordpress plugin.

Does anyone know where I can find a lits of hooks and filters and what they do?

Also, is there a book that is a good reference for people who want to write wordpress plugins?



If you want to learn how to write a plugin, then the formal way would be best.  Learn PHP syntax and learn WordPress core concepts.  This is a lengthier process but you will learn how to do it correctly.

However, if you are comfortable with reading code, and you are willing to hack around, here's how to do it.

a)  Find a plugin that already does what you want.  Go to your admin dashboard, look at the list of installed plugins.  Click EDIT on the plugin you want.
b)  Copy and paste the code to a text editor like Notepad++ so you can edit it properly.
c)  Change the following information:

Plugin Name:
plugin URI:
Description:
version: 1.0.0
Author: Your Name
Author URI: The URL of your website
License: GPL2

Changing this header information effectively creates a new plugin.

d)  Make the changes you want to the code.  If you picked the right plugin to clone, you only need minor alterations to the code.

e)  Make a zip file of the code.

f)  Use the Upload Plugin option to upload the Zip File to your WordPress website.  WordPress will install the plugin for you  as long as there is no syntax error in the code.

By doing it this way, you build upon a working model that someone has already done.  You learn PHP syntax and you get to use the WordPress codex in researching the functions you need.

Offline M-Twain

  • Hosting Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • Web Design
Re: I want to write my own wordpress plugin
« Reply #3 on: July 20, 2017, 12:04:01 AM »
I suggest you a perfect guide to learn about WordPress filters and hooks >> http://docs.presscustomizr.com/article/26-wordpress-actions-filters-and-hooks-a-guide-for-non-developers

Also, I would like to recommend a book “Professional WordPress Plugin Development” by Brad Williams >> https://www.amazon.com/Professional-WordPress-Plugin-Development-Williams/dp/0470916222