Your SlideShare is downloading. ×
0
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
WordPress Plugins
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

WordPress Plugins

2,756

Published on

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

No Downloads
Views
Total Views
2,756
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
75
Comments
0
Likes
6
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.
  • 2. About Me<br />Web Developer – imaginuity.com<br />Links<br />Personal Contact –<br /> Presentation – <br />http://randyhoyt.com<br />@randyhoyt<br />http://r2h.me/plugins<br />
  • 3. WordPress 1.2<br />http://wordpress.org/news/2004/05/heres-the-beef/<br />
  • 4. WordPress 1.2 – New Plugin Architecture<br />http://wordpress.org/news/2004/05/heres-the-beef/<br />
  • 5. About Me<br />Web Developer – imaginuity.com<br />Plugin Architecture<br />Hooks: <br /><ul><li>Pre-defined places in WordPress where plugins and themes can inject their own code</li></ul>Two Types of Hooks:<br /><ul><li>Filters – For modifying various pieces of text
  • 6. Actions – For executing code triggered by an event</li></li></ul><li>About Me<br />Web Developer – imaginuity.com<br />Filters<br /><ul><li>Modify pieces of text that WordPress generates
  • 7. Functions:
  • 8. add_filter( $tag, $new_function, $priority, $accepted_args);
  • 9. Applies a function to a filter hook
  • 10. http://codex.wordpress.org/Function_Reference/add_filter
  • 11. remove_filter( $tag, $new_function, $priority, $accepted_args);
  • 12. Removes a function from a filter hook to which it has been added
  • 13. http://codex.wordpress.org/Function_Reference/remove_filter</li></li></ul><li>About Me<br />Web Developer – imaginuity.com<br />Filters: Examples<br />the_content<br /><ul><li>applied to the post content retrieved from the database, prior to printing on the screen</li></ul>wp_list_pages<br /><ul><li>applied to the HTML list generated by the wp_list_pagesfunction</li></ul>single_template, archive_template, etc.<br /><ul><li>plugins can modify the template files to be used with a filter returning the path to a new template file</li></li></ul><li>Screenshot TwentyTen<br />WP Tweet Button<br />http://wordpress.org/extend/plugins/wp-tweet-button/<br />
  • 14. Screenshot TwentyTen<br />198 add_filter('the_content', array(&$this, 'tw_update'));<br />578 function tw_update($content) { <br />612 $button = $this->tw_generate_button();<br />621 return $button . $content;<br />634 }<br />
  • 15. Hoyt Family<br />Password-Protected Blog<br />
  • 16. Hoyt Family<br /> function RRH_rss_remove_excerpt( $output ) {<br /> return "Please log in to our family web site to view this update.";<br /> }<br />add_filter('the_excerpt_rss', 'RRH_rss_remove_excerpt');<br />
  • 17. Remove Wordpressto WordPressfilter<br />http://wordpress.org/extend/plugins/remove-wordpress-to-wordpress-filter/<br />
  • 18. remove_filter('the_content','capital_P_dangit',11);<br />remove_filter('the_title','capital_P_dangit',11);<br />remove_filter('comment_text','capital_P_dangit',11);<br />Remove Wordpressto WordPressfilter<br />http://wordpress.org/extend/plugins/remove-wordpress-to-wordpress-filter/<br />
  • 19. About Me<br />Web Developer – imaginuity.com<br />Actions<br /><ul><li>Execute code when an event in WordPress occurs
  • 20. Functions:
  • 21. add_action( $tag, $new_function, $priority, $accepted_args );
  • 22. Applies a function to a filter hook
  • 23. http://codex.wordpress.org/Function_Reference/add_action
  • 24. remove_action( $tag, $new_function, $priority, $accepted_args );
  • 25. Removes a function from a filter hook to which it has been added
  • 26. http://codex.wordpress.org/Function_Reference/remove_action</li></li></ul><li>About Me<br />Web Developer – imaginuity.com<br />Actions: Examples<br />the_content<br /><ul><li>applied to the post content retrieved from the database, prior to printing on the screen</li></ul>wp_list_pages<br /><ul><li>applied to the HTML list generated by the wp_list_pagesfunction</li></ul>single_template, archive_template, etc.<br /><ul><li>plugins can modify the template files to be used with a filter returning the path to a new template file</li></li></ul><li>Admin Favicon<br />Admin Favicon<br />http://wordpress.org/extend/plugins/admin-favicon/<br />
  • 27. function Adminfavicon() {<br /> $options = get_option('favi_insert_url');<br /> echo '<link rel="shortcut icon" <br />href="' . $options[favi_url] . '" />';<br />}<br />add_action('admin_head', 'Adminfavicon');<br />Admin Favicon<br />http://wordpress.org/extend/plugins/admin-favicon/<br />
  • 28. Redirector<br />Redirector<br />http://wordpress.org/extend/plugins/redirector/<br />
  • 29. Redirector<br />Redirector<br />http://wordpress.org/extend/plugins/redirector/<br />
  • 30. function re_adminhead()<br />{<br />add_meta_box('redirect',  <br />__('Redirect','redirector'), <br />'re_metabox', 'page');<br />}<br />add_action('admin_head', 're_adminhead');<br />add_action('save_post', 're_meta_save');<br />function re_meta_save()<br />{<br /> $redirect_to = $_POST['redirector'];<br /> if ($redirect_to)<br />update_post_meta($_POST['ID'], 'redirector', $redirect_to);<br /> else<br />delete_post_meta($_POST['ID'], 'redirector');<br />}<br />Redirector<br />http://wordpress.org/extend/plugins/redirector/<br />
  • 31. WP Tutorial: Your First WP Plugin<br />http://markjaquith.wordpress.com/2006/03/04/wp-tutorial-your-first-wp-plugin/<br />
  • 32. About Me<br />Web Developer – imaginuity.com<br />Plugins<br />vs.<br />functions.php<br />
  • 33.
  • 34. WP-PageNavi<br />http://wordpress.org/extend/plugins/wp-pagenavi/<br />
  • 35. Maintenance Mode<br />http://wordpress.org/extend/plugins/maintenance-mode/<br />
  • 36. Theme My Login & Theme My Profile<br />http://profiles.wordpress.org/users/jfarthing84/<br />
  • 37. KB Advanced RSS Widget<br />http://wordpress.org/extend/plugins/kb-advanced-rss-widget/<br />
  • 38. KB Advanced RSS Widget<br />http://wordpress.org/extend/plugins/kb-advanced-rss-widget/<br />
  • 39. Analytics360°<br />http://wordpress.org/extend/plugins/analytics360/<br />
  • 40. Query Posts<br />http://wordpress.org/extend/plugins/query-posts/<br />
  • 41. Query Posts<br />http://wordpress.org/extend/plugins/query-posts/<br />
  • 42. TweetOnPost<br />http://wordpress.org/extend/plugins/tweetonpost/<br />
  • 43. Wordbooker<br />http://wordpress.org/extend/plugins/wordbooker/<br />WordBooker<br />Twitter on Post<br />Contact Form 7 / Gravity Forms<br />
  • 44. Gravity Forms<br />http://www.gravityforms.com/<br />

×