1

Topic: I want to write my own wordpress plugin

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?

2

Re: I want to write my own wordpress plugin

I only know from http://phpforms.net/tutorial/tutorial.html that when a Wordpress plugin becomes active, it might be interesting to do some processing (such as database creation, options filling, and so on…). To do so, Wordpress is providing a very usefull function that will enable you to call your own initialisation function. It’s called register_activation_hook($file,$function);

This function takes these two parameters:

•$file : the file where is located the function to call
•$function: the name of the function to call
So you will only need to declare previous line with corresponding parameters and, of course, to have your function ready. Anything present inside this function will be executed by Wordpress engine at plugin activation time, and only at this moment. Of course, counterpart function exists, and is called register_deactivation_hook($file, $function);.

When calling register_activation_hook, you can use the __FILE__ constant value which describes current file.

3

Re: I want to write my own wordpress plugin

Hello , what kind of plug ins  would you like to make ?

Re: I want to write my own wordpress plugin

There is a lot of information on the Internet about this

Re: I want to write my own wordpress plugin

go to codex.wordpress, its a very good resource for this