• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content

Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!

Building your first plugin by John Hawkins at WordCamp MSP

on

  • 1,779 views

This is the slide deck from my presentation at WordCamp MSP about Building your first WordPress plugin.

This is the slide deck from my presentation at WordCamp MSP about Building your first WordPress plugin.

Statistics

Views

Total Views
1,779
Views on SlideShare
1,779
Embed Views
0

Actions

Likes
0
Downloads
13
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

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
  • ***********CLICK “INSERT” THEN “HEADER & FOOTER” TO EASILY UPDATE THE “SPEAKER NAME @TWITTER” ON ALL SLIDES***********

Building your first plugin by John Hawkins at WordCamp MSP Building your first plugin by John Hawkins at WordCamp MSP Presentation Transcript

  • Building your first plugin
    WordPress 301
    Follow John Hawkins @VegasGeek
    • Husband
    • Dad
    • Self-Employed
    • Web Developer
    • Geek
    Follow John Hawkins @VegasGeek
    Hi, I’m John
    • 9seeds.com
    • VegasGeek.com
    • @vegasgeek
    • Spend too much time in front of the computer
    Follow John Hawkins @VegasGeek
    What I do
  • How I got started
    Follow John Hawkins @VegasGeek
    • Tools
    • Hooks
    • Code
    • Resources
    Follow John Hawkins @VegasGeek
    About this presentation
  • tools
    Follow John Hawkins @VegasGeek
    • Windows: XAMPPhttp://vegasgeek.com/xampp
    • Older Mac (like me): MAMPhttp://vegasgeek.com/mamp
    Follow John Hawkins @VegasGeek
    Develop Locally
    • Syntax Highlighting
    • Error Checking
    • Auto-Complete functions
    • NetBeans / PHP Storm
    Follow John Hawkins @VegasGeek
    Use an IDE
  • hooks
    Follow John Hawkins @VegasGeek
    • Specific points in the WordPress codeused to interact with WordPress
    • Two types of hooks; Actions and Filters
    • 1,300+ hooks in WordPress 3.0
    Follow John Hawkins @VegasGeek
    What’s a Hook?
  • - Tell WordPress to perform a functionat a specific time
    Follow John Hawkins @VegasGeek
    Action Hooks
    • Passes data to your function
    • Your function can modify the data andsend it back to WordPress
    Follow John Hawkins @VegasGeek
    Filter Hooks
  • code
    Follow John Hawkins @VegasGeek
    • Create a shortcode
    • Display info for an upcoming eventin a page or post
    • Create an admin panel to updateevent info
    Follow John Hawkins @VegasGeek
    What will it do?
    • Single files go directly in the plugin folder
    • Multiple files go in their own folder
    • WordPress only looks one folder deep
    Follow John Hawkins @VegasGeek
    The Plugin Folder
    • Single files go directly in the plugin folder
    • Multiple files go in their own folder
    • WordPress only looks one folder deep
    Follow John Hawkins @VegasGeek
    The Plugin Folder
  • Follow John Hawkins @VegasGeek
    Plugin Header
  • Follow John Hawkins @VegasGeek
    Plugin Header
  • Follow John Hawkins @VegasGeek
    The Function
  • Follow John Hawkins @VegasGeek
  • Follow John Hawkins @VegasGeek
  • Follow John Hawkins @VegasGeek
    Add a settings page
  • Follow John Hawkins @VegasGeek
    The settings form
  • Follow John Hawkins @VegasGeek
    The settings form
  • Follow John Hawkins @VegasGeek
    The settings form
  • Follow John Hawkins @VegasGeek
    The settings form
  • Follow John Hawkins @VegasGeek
    The settings form
  • Follow John Hawkins @VegasGeek
    Settings Page
  • Follow John Hawkins @VegasGeek
    Use the option values
  • resources
    Follow John Hawkins @VegasGeek
    • http://codex.wordpress.org
    • http://vegasgeek.com/wc-msp
    Follow John Hawkins @VegasGeek
  • John Hawkins
    john@9seeds.com
    Work: http://9seeds.com
    Blog: http://vegasgeek.com
    Tweet: @vegasgeek
    Follow John Hawkins @VegasGeek
    Thank You!