Getting Started with
                          WordPress Development
                                   by John Hawkins

 ...
$about[‘presentation’]

                     • Tools
                     • Hooks
                     • Code
            ...
Tools

Friday, August 27, 2010
Develop Locally


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


            ...
Use an IDE
                     •    Syntax highlighting

                     •    Error checking

                     •...
Hooks

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

                     • Specific points in the WordPress code used
                             to interact ...
Action Hooks


                     • Tell WordPress to perform a function at a
                          specific point


...
Filter Hooks


                     • Passes data to your function
                     • Your function can modify the dat...
Code

Friday, August 27, 2010
What will it do?

                     • Create a shortcode
                     • Display info for an upcoming event in a...
The Plugins Folder

                     •    Single files go directly in
                          the plugin folder

    ...
The Plugins Folder

                     •    Single files go directly in
                          the plugin folder

    ...
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,...
Thank You!
                          I am: John Hawkins

                          I email: john@vegasgeek.com
           ...
Upcoming SlideShare
Loading in...5
×

Beginning Plugin d

1,036

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,036
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Beginning Plugin d

  1. 1. Getting Started with WordPress Development by John Hawkins @VegasGeek JohnHawkinsUnrated.com Friday, August 27, 2010
  2. 2. $about[‘presentation’] • Tools • Hooks • Code • Resources Friday, August 27, 2010
  3. 3. Tools Friday, August 27, 2010
  4. 4. Develop Locally • Windows: XAMPP http://h.awkins.com/xampp • Mac: MAMP http://h.awkins.com/mamp Friday, August 27, 2010
  5. 5. 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
  6. 6. Hooks Friday, August 27, 2010
  7. 7. 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
  8. 8. Action Hooks • Tell WordPress to perform a function at a specific point Friday, August 27, 2010
  9. 9. Filter Hooks • Passes data to your function • Your function can modify the data and send it back to WordPress Friday, August 27, 2010
  10. 10. Code Friday, August 27, 2010
  11. 11. 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
  12. 12. 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
  13. 13. 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
  14. 14. Plugin Header Friday, August 27, 2010
  15. 15. Plugin Header Friday, August 27, 2010
  16. 16. The Function Friday, August 27, 2010
  17. 17. Friday, August 27, 2010
  18. 18. Friday, August 27, 2010
  19. 19. Add a Settings Page Friday, August 27, 2010
  20. 20. The Settings Form Friday, August 27, 2010
  21. 21. Options Page Friday, August 27, 2010
  22. 22. Use the Option Values Friday, August 27, 2010
  23. 23. Resources Friday, August 27, 2010
  24. 24. Resources • http://codex.wordpress.org • http://h.awkins.com/wc-utah Friday, August 27, 2010
  25. 25. 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
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×