Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Talk:Writing a plugin

Anything happening on this? There are several links to it and we need something. Lorelle 13:27, 11 Mar 2005 (UTC)

So I moved in what was there - everyone can edit at will :)

Carthik ‹ ℂ › Talk 13:43, 11 Mar 2005 (UTC)
Wonderful, now with the questions:
1. Explanation might be needed towards the top when explaining what "defines" a plugin from...hacks? Then hacks should be mentioned with a link to their "about" page.
2. In the intro to the API hook, a link to the page on that needs to be there.
....continued later. Lorelle 13:49, 11 Mar 2005 (UTC)
Back -
3. Under API Hooks, shouldn't all those TBAs be in the Plugin_API page? This isn't an article about the hooks as it is about the Plugin development - so this might be redundant, or need moving over. Don't know enough to be an expert, just wondering.
4. In the Requirments section, a mention is made of "standard practices" listed below. Below where? in the "Tips"?
Very good stuff and well thought out. Wow. These are just minor questions. I'm looking forward to seeing this fleshed out more. Keep up the great work! Lorelle 14:18, 11 Mar 2005 (UTC)


To summarize: To be done: Link to the API page, and maintain the flow on this one. Flesh out standard practices, including the new readme, screenshots etc. Link to hacks page - though my-hacks.php is deprecated.

Carthik ‹ ℂ › Talk 15:10, 11 Mar 2005 (UTC)


Also, based on discussions on the doc-mailing list, a mention about PHP sessions and the PHP bug - stating that plugins shouldn't use sessions. Whatever the technical bather is about it.
Great stuff! Lorelle 19:18, 11 Mar 2005 (UTC)

Culling

I've nixed most of the Plugin API talk and referenced Plugin API. It's all there in the history, though, and I'll look it over again for inclusion into Plugin API at some point.

I've also added a ref to Adding Administration Menus --MDAWaffe - Talk 19:57, 11 Mar 2005 (UTC)

Needed: Nix #Adding Administration Menus, #Avoiding Function Name Collisions, #Plugin Metadata from Plugin API and make sure all that content is here at this article. --MDAWaffe - Talk 20:59, 11 Mar 2005 (UTC) --MDAWaffe - Talk 20:56, 12 Mar 2005 (UTC)

skippy 17:11, 18 Apr 2005 (UTC): the localization portion seems incomplete. How do I generate the requisite map file for use by gettext? If that information exists elsewhere on codex, we need a link to it.

skippy 20:39, 18 Apr 2005 (UTC):found the answer to my own question; unfortunately it's not entirely intuitive. I'll try to write up an example for others.
See Creating POT Files in my userspace for a first draft.

Plugin Metadata

The Plugin Metadata section needs to be fleshed out. It is extremely unspecific. Here are some questions I have that others will probably have that should probably be answered in this section or in a linked article:

  • What metadata is required?
  • Is there a list of "Tags" that can be used, or is it arbitrary?
  • Is it necessary to have the "Contributors" line if there are no contributors?
  • Should the headlines be formatted exactly like the example?
  • How will whatever script that parses this know which numbered list contains the screenshots (probably related to the headlines).

--kccricket 21:16, 4 May 2005 (UTC)

Also, is the implimentation of this plugin metadata open for discussion?
--kccricket 22:25, 4 May 2005 (UTC)
Which Metadata are actually used out there? Especially the metadata-txt -- is it used somewhere or just an nice-to-have-idea? --Tordans 09:44, 17 Apr 2006 (GMT)

Saving Plugin Data to the Database

The area Saving Plugin Data to the Database needs improving:

  • There is not real description of what each of the variables do. Snareklutz

Localisation

Shouldn't the Headline be internationalisation? L10N is what you do editing the PO-Files. --Morty 11:45, 12 Jan 2007 (UTC)

Breaking Apart the Article

This article, especially with the new Codex/WP layout, is really long and cumbersome. I'd like to break it up into pieces. Suggestions? Ideas? Lorelle 06:56, 28 Jan 2007 (UTC)