SlideShare une entreprise Scribd logo
1  sur  25
Télécharger pour lire hors ligne
Getting Started with
                          WordPress Development
                                   by John Hawkins

                                    @VegasGeek
                               JohnHawkinsUnrated.com




Friday, August 27, 2010
$about[‘presentation’]

                     • Tools
                     • Hooks
                     • Code
                     • Resources

Friday, August 27, 2010
Tools

Friday, August 27, 2010
Develop Locally


                     • Windows: XAMPP
                          http://h.awkins.com/xampp


                     • Mac: MAMP
                          http://h.awkins.com/mamp




Friday, August 27, 2010
Use an IDE
                     •    Syntax highlighting

                     •    Error checking

                     •    Auto-complete
                          functions

                     •    Try NetBeans



                          h.awkins.com/wiki-ide
                          h.awkins.com/netbeans-config



Friday, August 27, 2010
Hooks

Friday, August 27, 2010
What’s a Hook?

                     • Specific points in the WordPress code used
                             to interact with WordPress
                     • Two types of hooks; Actions and Filters
                     • 1300+ hooks in WordPress 3.0
                          List of hooks: http://h.awins.com/wp-hooks


Friday, August 27, 2010
Action Hooks


                     • Tell WordPress to perform a function at a
                          specific point




Friday, August 27, 2010
Filter Hooks


                     • Passes data to your function
                     • Your function can modify the data and send
                          it back to WordPress




Friday, August 27, 2010
Code

Friday, August 27, 2010
What will it do?

                     • Create a shortcode
                     • Display info for an upcoming event in a
                          page or post
                     • Create an admin panel to update event info


Friday, August 27, 2010
The Plugins Folder

                     •    Single files go directly in
                          the plugin folder

                     •    Multiple files go in their
                          own folder

                     •    WordPress only looks
                          one folder deep




Friday, August 27, 2010
The Plugins Folder

                     •    Single files go directly in
                          the plugin folder

                     •    Multiple files go in their
                          own folder

                     •    WordPress only looks
                          one folder deep




Friday, August 27, 2010
Plugin Header




Friday, August 27, 2010
Plugin Header




Friday, August 27, 2010
The Function




Friday, August 27, 2010
Friday, August 27, 2010
Friday, August 27, 2010
Add a Settings Page




Friday, August 27, 2010
The Settings Form




Friday, August 27, 2010
Options Page




Friday, August 27, 2010
Use the Option Values




Friday, August 27, 2010
Resources

Friday, August 27, 2010
Resources


                     • http://codex.wordpress.org
                     • http://h.awkins.com/wc-utah


Friday, August 27, 2010
Thank You!
                          I am: John Hawkins

                          I email: john@vegasgeek.com
                          I tweet: @VegasGeek
                          I blog: JohnHawkinsUnrated.com
                          I work: 9seeds.com




Friday, August 27, 2010

Contenu connexe

En vedette

Getting Started With WordPress Development
Getting Started With WordPress DevelopmentGetting Started With WordPress Development
Getting Started With WordPress DevelopmentAndy Brudtkuhl
 
Jetpack: The Swiss Army Knife of Plugins
Jetpack: The Swiss Army Knife of PluginsJetpack: The Swiss Army Knife of Plugins
Jetpack: The Swiss Army Knife of Pluginsvegasgeek
 
Building An Autonomous Website
Building An Autonomous WebsiteBuilding An Autonomous Website
Building An Autonomous Websitevegasgeek
 
Building an Autonomous Website
Building an Autonomous WebsiteBuilding an Autonomous Website
Building an Autonomous Websitevegasgeek
 

En vedette (7)

Basics PHP
Basics PHPBasics PHP
Basics PHP
 
Getting Started With WordPress Development
Getting Started With WordPress DevelopmentGetting Started With WordPress Development
Getting Started With WordPress Development
 
Basic PHP
Basic PHPBasic PHP
Basic PHP
 
Jetpack: The Swiss Army Knife of Plugins
Jetpack: The Swiss Army Knife of PluginsJetpack: The Swiss Army Knife of Plugins
Jetpack: The Swiss Army Knife of Plugins
 
Php i basic chapter 3
Php i basic chapter 3Php i basic chapter 3
Php i basic chapter 3
 
Building An Autonomous Website
Building An Autonomous WebsiteBuilding An Autonomous Website
Building An Autonomous Website
 
Building an Autonomous Website
Building an Autonomous WebsiteBuilding an Autonomous Website
Building an Autonomous Website
 

Similaire à Getting Started with WordPress Development

From where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced itFrom where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced itminddog
 
Vancouver WordPress Meetup - WordPress 101
Vancouver WordPress Meetup - WordPress 101Vancouver WordPress Meetup - WordPress 101
Vancouver WordPress Meetup - WordPress 101designfaire
 
Responsive web design - Drupal theming
Responsive web design - Drupal themingResponsive web design - Drupal theming
Responsive web design - Drupal themingadifferentdesign
 
Improving Site Design and Usability
Improving Site Design and UsabilityImproving Site Design and Usability
Improving Site Design and Usabilitycouldbe studios
 
Online Collaboration with Google Docs
Online Collaboration with Google DocsOnline Collaboration with Google Docs
Online Collaboration with Google DocsP Parson
 
Getting Started with Axure Widget Libraries
Getting Started with Axure Widget LibrariesGetting Started with Axure Widget Libraries
Getting Started with Axure Widget LibrariesJayne Spottswood
 
Unconferences & New Web Initiatives
Unconferences & New Web InitiativesUnconferences & New Web Initiatives
Unconferences & New Web InitiativesEllyssa Kroski
 
Plone Conference 2010 – Where we go from here
Plone Conference 2010 – Where we go from herePlone Conference 2010 – Where we go from here
Plone Conference 2010 – Where we go from hereEric Steele
 
Music Hackday Boston - The Last.fm API
Music Hackday Boston - The Last.fm APIMusic Hackday Boston - The Last.fm API
Music Hackday Boston - The Last.fm APIdavidsingleton
 
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP GroupDeveloping Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Groupminddog
 

Similaire à Getting Started with WordPress Development (14)

From where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced itFrom where OpenVBX came from to how we open sourced it
From where OpenVBX came from to how we open sourced it
 
Vancouver WordPress Meetup - WordPress 101
Vancouver WordPress Meetup - WordPress 101Vancouver WordPress Meetup - WordPress 101
Vancouver WordPress Meetup - WordPress 101
 
Responsive web design - Drupal theming
Responsive web design - Drupal themingResponsive web design - Drupal theming
Responsive web design - Drupal theming
 
Improving Site Design and Usability
Improving Site Design and UsabilityImproving Site Design and Usability
Improving Site Design and Usability
 
Online Collaboration with Google Docs
Online Collaboration with Google DocsOnline Collaboration with Google Docs
Online Collaboration with Google Docs
 
WSGI, Django, Gunicorn
WSGI, Django, GunicornWSGI, Django, Gunicorn
WSGI, Django, Gunicorn
 
Getting Started with Axure Widget Libraries
Getting Started with Axure Widget LibrariesGetting Started with Axure Widget Libraries
Getting Started with Axure Widget Libraries
 
Unconferences & New Web Initiatives
Unconferences & New Web InitiativesUnconferences & New Web Initiatives
Unconferences & New Web Initiatives
 
Plone Conference 2010 – Where we go from here
Plone Conference 2010 – Where we go from herePlone Conference 2010 – Where we go from here
Plone Conference 2010 – Where we go from here
 
Oscon 2010
Oscon 2010Oscon 2010
Oscon 2010
 
Music Hackday Boston - The Last.fm API
Music Hackday Boston - The Last.fm APIMusic Hackday Boston - The Last.fm API
Music Hackday Boston - The Last.fm API
 
Jrubykaigi 2010
Jrubykaigi 2010Jrubykaigi 2010
Jrubykaigi 2010
 
Building a Website The Easy Way With Wordpress
Building a Website The Easy Way With WordpressBuilding a Website The Easy Way With Wordpress
Building a Website The Easy Way With Wordpress
 
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP GroupDeveloping Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
Developing Plugins on OpenVBX at Greater San Francisco Bay Area LAMP Group
 

Plus de vegasgeek

2019 WordCamp Orange County - An Introduction to the WordPress REST API
2019 WordCamp Orange County - An Introduction to the WordPress REST API2019 WordCamp Orange County - An Introduction to the WordPress REST API
2019 WordCamp Orange County - An Introduction to the WordPress REST APIvegasgeek
 
Intro to child themes
Intro to child themesIntro to child themes
Intro to child themesvegasgeek
 
Y U No Tell Me? - WordCamp Tampa 2014
Y U No Tell Me? - WordCamp Tampa 2014Y U No Tell Me? - WordCamp Tampa 2014
Y U No Tell Me? - WordCamp Tampa 2014vegasgeek
 
WordPress Use Cases
WordPress Use CasesWordPress Use Cases
WordPress Use Casesvegasgeek
 
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013vegasgeek
 
An into to using $wpdb with your own database tables
An into to using $wpdb with your own database tablesAn into to using $wpdb with your own database tables
An into to using $wpdb with your own database tablesvegasgeek
 
An introduction to WordPress Development
An introduction to WordPress DevelopmentAn introduction to WordPress Development
An introduction to WordPress Developmentvegasgeek
 
An Introduction to Multisite - WordCamp Phoenix
An Introduction to Multisite - WordCamp PhoenixAn Introduction to Multisite - WordCamp Phoenix
An Introduction to Multisite - WordCamp Phoenixvegasgeek
 
WCLV - Introduction to child themes
WCLV - Introduction to child themesWCLV - Introduction to child themes
WCLV - Introduction to child themesvegasgeek
 
WordPress meetup - 10 plugins
WordPress meetup - 10 pluginsWordPress meetup - 10 plugins
WordPress meetup - 10 pluginsvegasgeek
 
Intro to WordPress Child Themes
Intro to WordPress Child ThemesIntro to WordPress Child Themes
Intro to WordPress Child Themesvegasgeek
 
WordCamp Reno 2011 - Intro to Genesis Child Themes
WordCamp Reno 2011 - Intro to Genesis Child ThemesWordCamp Reno 2011 - Intro to Genesis Child Themes
WordCamp Reno 2011 - Intro to Genesis Child Themesvegasgeek
 
Intro to StudioPress child themes
Intro to StudioPress child themesIntro to StudioPress child themes
Intro to StudioPress child themesvegasgeek
 
Building your first plugin by John Hawkins at WordCamp MSP
Building your first plugin by John Hawkins at WordCamp MSPBuilding your first plugin by John Hawkins at WordCamp MSP
Building your first plugin by John Hawkins at WordCamp MSPvegasgeek
 
Using WordPress as a CMS for Affiliate Marketing
Using WordPress as a CMS for Affiliate MarketingUsing WordPress as a CMS for Affiliate Marketing
Using WordPress as a CMS for Affiliate Marketingvegasgeek
 

Plus de vegasgeek (15)

2019 WordCamp Orange County - An Introduction to the WordPress REST API
2019 WordCamp Orange County - An Introduction to the WordPress REST API2019 WordCamp Orange County - An Introduction to the WordPress REST API
2019 WordCamp Orange County - An Introduction to the WordPress REST API
 
Intro to child themes
Intro to child themesIntro to child themes
Intro to child themes
 
Y U No Tell Me? - WordCamp Tampa 2014
Y U No Tell Me? - WordCamp Tampa 2014Y U No Tell Me? - WordCamp Tampa 2014
Y U No Tell Me? - WordCamp Tampa 2014
 
WordPress Use Cases
WordPress Use CasesWordPress Use Cases
WordPress Use Cases
 
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
Using BuddyPress as a Directory - BuddyCamp Minneapolis 2013
 
An into to using $wpdb with your own database tables
An into to using $wpdb with your own database tablesAn into to using $wpdb with your own database tables
An into to using $wpdb with your own database tables
 
An introduction to WordPress Development
An introduction to WordPress DevelopmentAn introduction to WordPress Development
An introduction to WordPress Development
 
An Introduction to Multisite - WordCamp Phoenix
An Introduction to Multisite - WordCamp PhoenixAn Introduction to Multisite - WordCamp Phoenix
An Introduction to Multisite - WordCamp Phoenix
 
WCLV - Introduction to child themes
WCLV - Introduction to child themesWCLV - Introduction to child themes
WCLV - Introduction to child themes
 
WordPress meetup - 10 plugins
WordPress meetup - 10 pluginsWordPress meetup - 10 plugins
WordPress meetup - 10 plugins
 
Intro to WordPress Child Themes
Intro to WordPress Child ThemesIntro to WordPress Child Themes
Intro to WordPress Child Themes
 
WordCamp Reno 2011 - Intro to Genesis Child Themes
WordCamp Reno 2011 - Intro to Genesis Child ThemesWordCamp Reno 2011 - Intro to Genesis Child Themes
WordCamp Reno 2011 - Intro to Genesis Child Themes
 
Intro to StudioPress child themes
Intro to StudioPress child themesIntro to StudioPress child themes
Intro to StudioPress child themes
 
Building your first plugin by John Hawkins at WordCamp MSP
Building your first plugin by John Hawkins at WordCamp MSPBuilding your first plugin by John Hawkins at WordCamp MSP
Building your first plugin by John Hawkins at WordCamp MSP
 
Using WordPress as a CMS for Affiliate Marketing
Using WordPress as a CMS for Affiliate MarketingUsing WordPress as a CMS for Affiliate Marketing
Using WordPress as a CMS for Affiliate Marketing
 

Getting Started with WordPress Development