Upload
rodasc
View
476
Download
0
Embed Size (px)
Citation preview
Cesar D. Rodaswww.cesarodas.comCentro Nacional de ComputacionCampus UNA – 2160 San Lorenzo - Paraguay
CONAPHP 2008São Paulo - Brazil`
Extending Wordpress
2`
Milestone
Who am I?Why Wordpress?Extending it.Writing a Plugin.Talk is cheap!... show me the codeWhich license should you use?
3`
Who am I?
PHP coder!I am from Paraguay.Lucky man
Google Summer of Code 2008PHP Innovation Award 2007 winner
More info available at www.cesarodas.com
4`
Why Wordpress?
IMHO the most popular open source blog system.Interesting for developers:
Simple but powerful design.Easy to extend.Can be used as a framework.“Themes” are separated.
5`
Extending it
Work directly with the core.Fix bugsImproved core (better cache support, improved search engine,an so on).
Writing plug-insAnything you can figure out.
Create Themes.Raw HTMLSmarty Template
6`
Writing a Plugin
Get a good IdeaProviding information to WP.Understanding hooking.What License it sould be used?
7`
Providing Information to WP.
<?php
/*
Plugin Name: Foo bar Plug in
Plugin URI: http://foobar.org/
Description: Does some foo bar on your blog
Version: 1.0
Author: Cesar Rodas
Author URI: http://cesar.la/
*/
?>
8`
Providing Information to WP.
9`
Live example
WP-Storage: Simple plug-in to upload files to third parties file servers such as YouTube and Amazon S3. The plug-in its self have plugins to support in a near future more “file servers”.It was my Google Summer of Code 2008 Project.Lets see it.
10`
What License it should be?
IHMO if the plugin is not a derivated work, and doesn't modify anything in the WP core, it could have any license.You can use WP as framework, and “sell” it, and it will still will be software if you give “freedom” to your customer.
11`
Conclusions
Wordpress is much more than a simple blog system. This talk attempts to show some
sides not very exploited (sometimes) by the developers.
By the same to encourage people to contritube to the WP project (and GSOC
2009 is your oportunity)
12`
More information
Wordpress API http://codex.wordpress.org/Plugin_APIList of WP Actions http://codex.wordpress.org/Plugin_API/Action_ReferenceList of WP Filters http://codex.wordpress.org/Plugin_API/Filter_Reference
13`
Questions?