256 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Located in Belgium
+9 more
Sitebase says

I’m working on a OO framework that will make it super easy for writing Wordpress plugins. The framework will also give you much cleaner and manageable code.

Here you see a little example of a plugin written with the framework. The activate and deactivate are not needed but it’s just for demonstrating how easy it is.

<?php /*
Plugin Name: Custom plugin
Plugin URI: http://www.sitebase.be
Description: Description
Author: Sitebase
Version: 1.0
Requires at least: 2.8
Author URI: http://www.sitebase.be
*/
include "library/My_WPBase.php";

class CustomPlugin extends My_WpBase{

        const NAME = "My Custom Plugin";

        public function activate(){
                echo 'activate';
        }

        public function deactivate(){
                echo 'deactivate';
        }

        public function filter_the_title($title){
                return $title . ' Modified :)';
        }

}

$CustomPlugin = new CustomPlugin();
?>

Instead of writing all kinds of add_action or add_filter rules you just overwrite the action/filter methods you want to use and you’re ready to go.

This in combination with a lot of other usefull stuff will make this a very powerfull, and the first real OO Wordpress plugin framework.

Check out this little video to see the plugin in action: http://screenr.com/liL

Do you guys have some good ideas of what you want to see in such a framework?

I’ve also posted this on Forrst.

737 posts
  • Has referred 500+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
mordauk says

Looks like a great idea! Not sure I have any immediate ideas off the top of my head, but I can imagine this sort of thing being hugely useful when writing plugins.

Great work.

256 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Located in Belgium
+9 more
Sitebase says

Thanks man. Will be releasing shortly my first item that uses this framework. After that I hope to release the framework here too.

737 posts
  • Has referred 500+ members
  • Has sold $125,000+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+7 more
mordauk says

Awesome

256 posts
  • Has been part of the Envato Community for over 5 years
  • Has referred 100+ members
  • Has sold $125,000+ on Envato Market
  • Located in Belgium
+9 more
Sitebase says

Just to let you know that the framework can now be downloaded from my Github page.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by