cain & obenland — episode 4
DESCRIPTION
TRANSCRIPT
![Page 1: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/1.jpg)
![Page 2: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/2.jpg)
Episode 4:The real C’n’O in The OC
![Page 3: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/3.jpg)
Do You _stand Themes?
The real C’n’O in The OC
Special Guest: Mike Schroder
Hooking Up with WordPress
![Page 4: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/4.jpg)
Michael Cain!
Theme Generator at Automattic @michaeldcain
!mapandmenu.com
![Page 5: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/5.jpg)
Konstantin Obenland!
Code Wrangler at Automattic!@obenland!
!konstantin.obenland.it
![Page 6: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/6.jpg)
Do You _stand Themes?
![Page 7: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/7.jpg)
Starter Themes
• Not a parent theme.
• Not a theme framework.
• Foundation of a new theme.
![Page 8: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/8.jpg)
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.
![Page 9: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/9.jpg)
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.
![Page 10: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/10.jpg)
2010 2011 2012 2013 2014
Pedigree
Twenty Eleven
Twenty Ten
Twenty Twelve
Twenty Thirteen
Toolbox
Twenty Fourteen
Further
Twenty Fifteen
![Page 11: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/11.jpg)
300,000 Downloads
![Page 12: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/12.jpg)
71 Contributorsfrom 18 countries
![Page 13: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/13.jpg)
Most Popular WordPress Project**Starred PHP Projects on GitHub, excluding WordPress itself
![Page 14: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/14.jpg)
Underscores.me@underscoresme
git.io/_s
![Page 15: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/15.jpg)
Still to come:
Special Guest: Mike Schroder
Hooking Up with WordPress
![Page 16: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/16.jpg)
In no every way affiliated with or and sponsored by…
![Page 17: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/17.jpg)
WordCamp Ventura CountyNovember 8th, 2014
![Page 18: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/18.jpg)
![Page 19: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/19.jpg)
Mike SchroderSomewhat deep and superficially geeky
![Page 20: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/20.jpg)
Mike Schroder!
Developer; WordPress Specialist at DreamHost @DH_Shredder
!getsource.net
![Page 21: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/21.jpg)
Hooking Up with WordPress
There’s more:
![Page 22: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/22.jpg)
In no every way affiliated with or and sponsored by…
![Page 23: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/23.jpg)
WordCamp MaineAugust 16th, 2014
![Page 24: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/24.jpg)
![Page 25: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/25.jpg)
Hooking Up with WordPressGetting Started with Actions and Filters
![Page 26: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/26.jpg)
WordPress Actions and Filters
Allow you to modify or add functionality
by calling functions at specific times.
![Page 27: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/27.jpg)
WordPress Actions and Filters
Filters call functions that take some kind of input,
modify it, and return it.
![Page 28: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/28.jpg)
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' );
![Page 29: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/29.jpg)
WordPress Actions
Actions call functions and
don’t care about their returned value.
A filter without arguments or a returned value.
![Page 30: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/30.jpg)
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' );
![Page 31: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/31.jpg)
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()
![Page 32: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/32.jpg)
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()
![Page 33: Cain & Obenland — Episode 4](https://reader034.vdocument.in/reader034/viewer/2022042613/54c73fd34a7959b4048b4581/html5/thumbnails/33.jpg)
The Endcain.obenland.it
!
@michaeldcain @obenland