Cain & Obenland — Episode 4

640 views
541 views

Published on

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

  • Be the first to like this

No Downloads
Views
Total views
640
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Cain & Obenland — Episode 4

  1. 1. Episode 4: The real C’n’O in The OC
  2. 2. Do You _stand Themes? The real C’n’O in The OC Special Guest: Mike Schroder Hooking Up with WordPress
  3. 3. Michael Cain ! Theme Generator at Automattic @michaeldcain ! mapandmenu.com
  4. 4. Konstantin Obenland ! Code Wrangler at Automattic! @obenland! ! konstantin.obenland.it
  5. 5. Do You _stand Themes?
  6. 6. Starter Themes • Not a parent theme. • Not a theme framework. • Foundation of a new theme.
  7. 7. Why Underscores • Just the right amount. • Experience from five default themes. • Experience from creating themes for millions of users on WordPress.com. • Does everything the WordPress way.
  8. 8. Why Underscores • Semi-standard for WordPress.org Theme Repository. • Best feature is its lack of features! No tearing down necessary. • Readable code with good documentation. • Very active community.
  9. 9. 2010 2011 2012 2013 2014 Pedigree Twenty Eleven Twenty Ten Twenty Twelve Twenty Thirteen Toolbox Twenty Fourteen Further Twenty Fifteen
  10. 10. 300,000 Downloads
  11. 11. 71 Contributors from 18 countries
  12. 12. Most Popular WordPress Project* *Starred PHP Projects on GitHub, excluding WordPress itself
  13. 13. Underscores.me @underscoresme git.io/_s
  14. 14. Still to come: Special Guest: Mike Schroder Hooking Up with WordPress
  15. 15. In no every way affiliated with 
 or and sponsored by…
  16. 16. WordCamp Ventura County November 8th, 2014
  17. 17. Mike Schroder Somewhat deep and superficially geeky
  18. 18. Mike Schroder ! Developer; WordPress Specialist at DreamHost @DH_Shredder ! getsource.net
  19. 19. Hooking Up with WordPress There’s more:
  20. 20. In no every way affiliated with 
 or and sponsored by…
  21. 21. WordCamp Maine August 16th, 2014
  22. 22. Hooking Up with WordPress Getting Started with Actions and Filters
  23. 23. WordPress Actions and Filters Allow you to modify or add functionality by calling functions at specific times.
  24. 24. WordPress Actions and Filters Filters call functions that take some kind of input, modify it, and return it.
  25. 25. function my_plugin_custom_content( $content ) { $search = 'Michael Cain'; $replace = 'Michael "The Great" Cain'; $content = preg_replace( $search, $replace, $content ); ! return $content; } add_filter( 'the_content', 'my_plugin_custom_content' );
  26. 26. WordPress Actions Actions call functions and don’t care about their returned value. A filter without arguments or a returned value.
  27. 27. function my_theme_google_font() { wp_enqueue_style( 'my-theme-montserrat', '//fonts.googleapis.com/css?family=Montserrat', array(), null ); } add_action( 'wp_enqueue_scripts', 'my_theme_google_font' );
  28. 28. Keep on Hookin’ Filter Functions • add_action() • has_action() • do_action() • do_action_ref_array() • doing_action() • did_action() • remove_action() • remove_all_actions() Action Functions • add_filter() • has_filter() • apply_filters() • doing_filter() • current_filter() • remove_filter() • remove_all_filters()
  29. 29. Keep on Hookin’ Filter Functions • add_action() • has_action() • do_action() • do_action_ref_array() • doing_action() • did_action() • remove_action() • remove_all_actions() Action Functions • add_filter() • has_filter() • apply_filters() • doing_filter() • current_filter() • remove_filter() • remove_all_filters()
  30. 30. The End cain.obenland.it ! @michaeldcain @obenland

×