13
Cesar D. Rodas www.cesarodas.com Centro Nacional de Computacion Campus UNA – 2160 San Lorenzo - Paraguay CONAPHP 2008 São Paulo - Brazil ` Extending Wordpress

Extending WordPress

  • Upload
    rodasc

  • View
    476

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Extending WordPress

Cesar D. Rodaswww.cesarodas.comCentro Nacional de ComputacionCampus UNA – 2160 San Lorenzo - Paraguay

CONAPHP 2008São Paulo - Brazil`

Extending Wordpress

Page 2: 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?

Page 3: Extending WordPress

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

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

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

6`

Writing a Plugin

Get a good IdeaProviding information to WP.Understanding hooking.What License it sould be used?

Page 7: Extending WordPress

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

8`

Providing Information to WP.

Page 9: Extending WordPress

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

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

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

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

13`

Questions?