Modular plugins
Upcoming SlideShare
Loading in...5
×
 

Modular plugins

on

  • 1,849 views

 

Statistics

Views

Total Views
1,849
Views on SlideShare
1,843
Embed Views
6

Actions

Likes
4
Downloads
22
Comments
0

4 Embeds 6

https://si0.twimg.com 3
http://a0.twimg.com 1
https://twimg0-a.akamaihd.net 1
https://duckduckgo.com 1

Accessibility

Categories

Upload Details

Uploaded via as Apple Keynote

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n

Modular plugins Modular plugins Presentation Transcript

  • Modular PluginsPippin Williamson - http://pippinsplugins.com @pippinsplugins http://facebook.com/pippinsplugins around the web as “mordauk”
  • what are modular plugins?
  • plugins that can be extended
  • plugins that can be modified
  • Definition:
  • Definition:plugins that can be modified and extended
  • Definition:plugins that can be modified and extended without ever changing core plugin code
  • Example:e-commerce plugins that accept add-on payment gateways
  • Example 2:gallery plugins that allow you to alter the image markup
  • Example 3:any plugin that has components that can be changed by a theme or other plugins
  • Example 3:any plugin that has components that can be changed by a theme or other plugins - even tiny components
  • text
  • textimages
  • textimages data
  • textimages datalayouts
  • text images data layoutsfunctions
  • any plugin can be modular
  • but not all aremost plugins are not modular and cannot be modified
  • but not all are most plugins are not modular and cannot be modified -not without changing core code
  • it is a choice
  • it is a choiceplugin developers must chooseto make their plugins modular
  • the key to modularity
  • the key to modularity using core WordPress methods
  • the key to modularity using core WordPress methods add_action()
  • the key to modularity using core WordPress methods add_action() do_action()
  • the key to modularity using core WordPress methods add_action() do_action() add_filter()
  • the key to modularity using core WordPress methods add_action() do_action() add_filter() apply_filters()
  • what usually happens
  • what usually happensmost plugin developers do not include the necessary components
  • let’s see an example
  • what’s wrong with this?
  • what’s wrong with this? not much, actually
  • what’s wrong with this? not much, actually but . . .
  • what’s wrong with this? not much, actually but . . . it could be much better
  • how it should be done
  • what can we do with this?
  • the results
  • let’s modify it slightly different method slightly different output
  • now go a little further
  • combinedfilters and actions can be combined
  • real world examples taken from real plugins
  • Restricted Site Access
  • BuddyPress
  • Soliloquy Slider
  • WP E-Commerce
  • Sugar Event Calendar
  • Gravity Forms
  • Easy Digital Downloads
  • Easy Digital Downloads
  • Easy Digital Downloads
  • reasons to build modular plugins
  • make developers happy
  • make developers happy the community matters
  • make developers happy the community mattershelp the community by writing extensible code
  • make developers happy the community mattershelp the community by writing extensible code others will say nice things about you
  • Matt Varone“Extensible code makes me happy.”
  • Ryan Imel“I think the true measure of a quality theme or plugin is how well it works with other plugins and themes - - both those that already exist and those that haven’t been made yet.”
  • Jake Goldman“What would core do?”
  • WordPress is modular how do you think plugins work?
  • WordPress is modular how do you think plugins work? -by using methods like those we just looked at
  • built with extensible functionsWordPress is comprised of extensible “modules”
  • build it like WordPressbuild your plugins like you were building WordPress itself
  • why?
  • why?because you ARE building WordPress itself
  • thanks