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,727

Published on

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

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

×