Your SlideShare is downloading. ×
0
About Me<br />Web Developer – imaginuity.com<br />Links<br />Personal Contact  –<br /> Presentation  –   <br />http://rand...
WordPress 1.2<br />http://wordpress.org/news/2004/05/heres-the-beef/<br />
WordPress 1.2 – New Plugin Architecture<br />http://wordpress.org/news/2004/05/heres-the-beef/<br />
About Me<br />Web Developer – imaginuity.com<br />Plugin Architecture<br />Hooks: <br /><ul><li>Pre-defined places in Word...
Actions – For executing code triggered by an event</li></li></ul><li>About Me<br />Web Developer – imaginuity.com<br />Fil...
Functions:
add_filter( $tag, $new_function, $priority, $accepted_args);
Applies a function to a filter hook
http://codex.wordpress.org/Function_Reference/add_filter
remove_filter( $tag, $new_function, $priority, $accepted_args);
Removes a function from a filter hook to which it has been added
http://codex.wordpress.org/Function_Reference/remove_filter</li></li></ul><li>About Me<br />Web Developer – imaginuity.com...
Screenshot TwentyTen<br />198    add_filter('the_content', array(&$this, 'tw_update'));<br />578    function tw_update($co...
Hoyt Family<br />Password-Protected Blog<br />
Hoyt Family<br />  function RRH_rss_remove_excerpt( $output ) {<br />      return "Please log in to our family web site to...
Remove Wordpressto WordPressfilter<br />http://wordpress.org/extend/plugins/remove-wordpress-to-wordpress-filter/<br />
remove_filter('the_content','capital_P_dangit',11);<br />remove_filter('the_title','capital_P_dangit',11);<br />remove_fil...
About Me<br />Web Developer – imaginuity.com<br />Actions<br /><ul><li>Execute code when an event in WordPress occurs
Functions:
add_action( $tag, $new_function, $priority, $accepted_args );
Applies a function to a filter hook
http://codex.wordpress.org/Function_Reference/add_action
remove_action( $tag, $new_function, $priority, $accepted_args );
Removes a function from a filter hook to which it has been added
http://codex.wordpress.org/Function_Reference/remove_action</li></li></ul><li>About Me<br />Web Developer – imaginuity.com...
function Adminfavicon() {<br />    $options = get_option('favi_insert_url');<br />    echo '<link rel="shortcut icon"     ...
Redirector<br />Redirector<br />http://wordpress.org/extend/plugins/redirector/<br />
Redirector<br />Redirector<br />http://wordpress.org/extend/plugins/redirector/<br />
function re_adminhead()<br />{<br />add_meta_box('redirect',      <br />__('Redirect','redirector'), <br />'re_metabox',...
WP Tutorial: Your First WP Plugin<br />http://markjaquith.wordpress.com/2006/03/04/wp-tutorial-your-first-wp-plugin/<br />
About Me<br />Web Developer – imaginuity.com<br />Plugins<br />vs.<br />functions.php<br />
WP-PageNavi<br />http://wordpress.org/extend/plugins/wp-pagenavi/<br />
Maintenance Mode<br />http://wordpress.org/extend/plugins/maintenance-mode/<br />
Upcoming SlideShare
Loading in...5
×

WordPress Plugins

2,773

Published on

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

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

No notes for slide

Transcript of "WordPress Plugins"

  1. 1.
  2. 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. 3. WordPress 1.2<br />http://wordpress.org/news/2004/05/heres-the-beef/<br />
  4. 4. WordPress 1.2 – New Plugin Architecture<br />http://wordpress.org/news/2004/05/heres-the-beef/<br />
  5. 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. 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. 7. Functions:
  8. 8. add_filter( $tag, $new_function, $priority, $accepted_args);
  9. 9. Applies a function to a filter hook
  10. 10. http://codex.wordpress.org/Function_Reference/add_filter
  11. 11. remove_filter( $tag, $new_function, $priority, $accepted_args);
  12. 12. Removes a function from a filter hook to which it has been added
  13. 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. 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. 15. Hoyt Family<br />Password-Protected Blog<br />
  16. 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. 17. Remove Wordpressto WordPressfilter<br />http://wordpress.org/extend/plugins/remove-wordpress-to-wordpress-filter/<br />
  18. 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. 19. About Me<br />Web Developer – imaginuity.com<br />Actions<br /><ul><li>Execute code when an event in WordPress occurs
  20. 20. Functions:
  21. 21. add_action( $tag, $new_function, $priority, $accepted_args );
  22. 22. Applies a function to a filter hook
  23. 23. http://codex.wordpress.org/Function_Reference/add_action
  24. 24. remove_action( $tag, $new_function, $priority, $accepted_args );
  25. 25. Removes a function from a filter hook to which it has been added
  26. 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. 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. 28. Redirector<br />Redirector<br />http://wordpress.org/extend/plugins/redirector/<br />
  29. 29. Redirector<br />Redirector<br />http://wordpress.org/extend/plugins/redirector/<br />
  30. 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. 31. WP Tutorial: Your First WP Plugin<br />http://markjaquith.wordpress.com/2006/03/04/wp-tutorial-your-first-wp-plugin/<br />
  32. 32. About Me<br />Web Developer – imaginuity.com<br />Plugins<br />vs.<br />functions.php<br />
  33. 33.
  34. 34. WP-PageNavi<br />http://wordpress.org/extend/plugins/wp-pagenavi/<br />
  35. 35. Maintenance Mode<br />http://wordpress.org/extend/plugins/maintenance-mode/<br />
  36. 36. Theme My Login & Theme My Profile<br />http://profiles.wordpress.org/users/jfarthing84/<br />
  37. 37. KB Advanced RSS Widget<br />http://wordpress.org/extend/plugins/kb-advanced-rss-widget/<br />
  38. 38. KB Advanced RSS Widget<br />http://wordpress.org/extend/plugins/kb-advanced-rss-widget/<br />
  39. 39. Analytics360°<br />http://wordpress.org/extend/plugins/analytics360/<br />
  40. 40. Query Posts<br />http://wordpress.org/extend/plugins/query-posts/<br />
  41. 41. Query Posts<br />http://wordpress.org/extend/plugins/query-posts/<br />
  42. 42. TweetOnPost<br />http://wordpress.org/extend/plugins/tweetonpost/<br />
  43. 43. Wordbooker<br />http://wordpress.org/extend/plugins/wordbooker/<br />WordBooker<br />Twitter on Post<br />Contact Form 7 / Gravity Forms<br />
  44. 44. Gravity Forms<br />http://www.gravityforms.com/<br />
  1. A particular slide catching your eye?

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

×