extending wordpress
TRANSCRIPT
![Page 1: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/1.jpg)
Cesar D. Rodaswww.cesarodas.comCentro Nacional de ComputacionCampus UNA – 2160 San Lorenzo - Paraguay
CONAPHP 2008São Paulo - Brazil`
Extending Wordpress
![Page 2: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/2.jpg)
2`
Milestone
Who am I?Why Wordpress?Extending it.Writing a Plugin.Talk is cheap!... show me the codeWhich license should you use?
![Page 3: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/3.jpg)
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
![Page 4: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/4.jpg)
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.
![Page 5: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/5.jpg)
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
![Page 6: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/6.jpg)
6`
Writing a Plugin
Get a good IdeaProviding information to WP.Understanding hooking.What License it sould be used?
![Page 7: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/7.jpg)
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/
*/
?>
![Page 8: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/8.jpg)
8`
Providing Information to WP.
![Page 9: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/9.jpg)
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.
![Page 10: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/10.jpg)
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.
![Page 11: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/11.jpg)
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)
![Page 12: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/12.jpg)
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
![Page 13: Extending WordPress](https://reader034.vdocuments.mx/reader034/viewer/2022052410/55499832b4c9050c738b4747/html5/thumbnails/13.jpg)
13`
Questions?