News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Create WordPress Plugins with OOP Techniques
May 20, 2011 @ 11:28:31

On NetTuts.com today there's a guide to help you create WordPress plugins with object-oriented code instead of procedural method. This means better encapsulation, reusability and more maintainable code.

Object-oriented code, among other things, can help organize and add reusability to your code. In this tutorial, I will teach you the basics of writing a WordPress plugin using object oriented techniques. We'll be using Dribble's API as an example for this tutorial.

They walk you through a brief explanation of OOP in WordPress plugins, setting up a shortcode, making a template tag and enabling this shortcode in the WordPress widgets. Their example grabs the latest shots from Dribble with a getImage() method that fetches the results from their REST API.

0 comments voice your opinion now!
wordpress plugin oop class dribble tutorial


blog comments powered by Disqus

Similar Posts

WebReference.com: Class Inheritance with PHP

NETTUTS.com: Building a Better BlogRoll: Dynamic Fun with SimplePie and jQuery

Bhaskar Karambelkar\'s Blog: Prototyping LAMP with WAMP

Rob Allen: Setting up Zend Server 6 on OS X for PHP development

Hasin Hayder's Blog: Creating Thumbnail of WebPages using WebThumb API


Community Events

Don't see your event here?
Let us know!


podcast community api release language library opinion laravel series laravel5 development psr7 interview voicesoftheelephpant video extension framework introduction conference unittest

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework