Your SlideShare is downloading. ×
0
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Modular plugins
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Modular plugins

1,678

Published on

Published in: Technology, Business
0 Comments
4 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,678
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
24
Comments
0
Likes
4
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \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
  • Transcript

    • 1. Modular PluginsPippin Williamson - http://pippinsplugins.com @pippinsplugins http://facebook.com/pippinsplugins around the web as “mordauk”
    • 2. what are modular plugins?
    • 3. plugins that can be extended
    • 4. plugins that can be modified
    • 5. Definition:
    • 6. Definition:plugins that can be modified and extended
    • 7. Definition:plugins that can be modified and extended without ever changing core plugin code
    • 8. Example:e-commerce plugins that accept add-on payment gateways
    • 9. Example 2:gallery plugins that allow you to alter the image markup
    • 10. Example 3:any plugin that has components that can be changed by a theme or other plugins
    • 11. Example 3:any plugin that has components that can be changed by a theme or other plugins - even tiny components
    • 12. text
    • 13. textimages
    • 14. textimages data
    • 15. textimages datalayouts
    • 16. text images data layoutsfunctions
    • 17. any plugin can be modular
    • 18. but not all aremost plugins are not modular and cannot be modified
    • 19. but not all are most plugins are not modular and cannot be modified -not without changing core code
    • 20. it is a choice
    • 21. it is a choiceplugin developers must chooseto make their plugins modular
    • 22. the key to modularity
    • 23. the key to modularity using core WordPress methods
    • 24. the key to modularity using core WordPress methods add_action()
    • 25. the key to modularity using core WordPress methods add_action() do_action()
    • 26. the key to modularity using core WordPress methods add_action() do_action() add_filter()
    • 27. the key to modularity using core WordPress methods add_action() do_action() add_filter() apply_filters()
    • 28. what usually happens
    • 29. what usually happensmost plugin developers do not include the necessary components
    • 30. let’s see an example
    • 31. what’s wrong with this?
    • 32. what’s wrong with this? not much, actually
    • 33. what’s wrong with this? not much, actually but . . .
    • 34. what’s wrong with this? not much, actually but . . . it could be much better
    • 35. how it should be done
    • 36. what can we do with this?
    • 37. the results
    • 38. let’s modify it slightly different method slightly different output
    • 39. now go a little further
    • 40. combinedfilters and actions can be combined
    • 41. real world examples taken from real plugins
    • 42. Restricted Site Access
    • 43. BuddyPress
    • 44. Soliloquy Slider
    • 45. WP E-Commerce
    • 46. Sugar Event Calendar
    • 47. Gravity Forms
    • 48. Easy Digital Downloads
    • 49. Easy Digital Downloads
    • 50. Easy Digital Downloads
    • 51. reasons to build modular plugins
    • 52. make developers happy
    • 53. make developers happy the community matters
    • 54. make developers happy the community mattershelp the community by writing extensible code
    • 55. make developers happy the community mattershelp the community by writing extensible code others will say nice things about you
    • 56. Matt Varone“Extensible code makes me happy.”
    • 57. 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.”
    • 58. Jake Goldman“What would core do?”
    • 59. WordPress is modular how do you think plugins work?
    • 60. WordPress is modular how do you think plugins work? -by using methods like those we just looked at
    • 61. built with extensible functionsWordPress is comprised of extensible “modules”
    • 62. build it like WordPressbuild your plugins like you were building WordPress itself
    • 63. why?
    • 64. why?because you ARE building WordPress itself
    • 65. thanks

    ×