Pippins Plugins
  • Email
  • Facebook
  • Feedburner
  • Github
  • Google
  • Twitter
  • Vimeo
  • Youtube
  • Rss
  • About
  • News
  • Join the Site
    • Member Benefits
    • Member Plugins
    • Email Notifications
  • Plugin Store
    • Affiliate Area
    • Checkout
  • Plugins
    • Plugin Portfolio
      • Plugin Portfolio – List View
    • Free
    • Premium
    • Member Plugins
    • Coding Standards
    • Get Plugin Support
  • Tutorials
    • Series
      • Plugin Development 101
      • Creating a User Follow System Plugin
      • Customizing Restrict Content Pro
      • Displaying Content with Easy Content Types
      • Writing Your First WordPress Plugins, Basic to Advanced
      • Working with Widgets
      • User Submitted Image Galleries
      • Plugin Thoughts
      • Integrating Stripe.com with WordPress
      • WordPress Rewrite API
    • Member Exclusive
      • Free Members
      • Subscriber Only
    • Difficulty
      • Beginner
      • Intermediate
      • Advanced
    • Action and Filter Hooks
    • Ajax
    • Custom Post Types
    • External APIs
    • Short Codes
    • Taxonomies
    • Video Tutorials
    • Widget Tutorials
    • WordPress Admin / Dashboard
    • Working with jQuery
    • WordPress Database
    • Writing Plugins
    • Tag Index
  • Reviews
  • Support Forum
  • Contact
    • Support the Site
    • Request Code Review
    • Plugin Support

Writing Your First WordPress Plugin Part 3

Posted on September 26, 2011 by Pippin in Beginner, Free Members, Member Restricted, Tutorials, Video Tutorials, Writing Plugins 8 Comments
Home» Tutorials » Beginner » Writing Your First WordPress Plugin Part 3
Tweet
Love It - 5
This entry is part 3 of 7 in the Writing Your First WordPress Plugins, Basic to Advanced Series
← Structuring Your First WordPress PluginWriting Your First WordPress Plugin Part 4 →
  • How to Begin Writing Your First WordPress plugin
  • Structuring Your First WordPress Plugin
  • Writing Your First WordPress Plugin Part 3
  • Writing Your First WordPress Plugin Part 4
  • Writing Your First WordPress Plugin Part 5
  • Writing Your First WordPress Plugin Part 6
  • Writing Your First WordPress Plugin Part 7 – Final

In part 3 of this tutorial series, I describe a couple of fundamental techniques for beginner WordPress plugin developers. This section details a very important function for WordPress plugins: how to add any kind of content to the end of a post. I show how it is done, and then also demonstrate some real world examples of where this technique is used.

The video covers several things:

  • First – adding another file to our plugin to hold all “display” functions
  • Second – Writing a function to display extra content at the end of a post
  • Third – Real world examples of where this kind of function is used

You must be logged in to view the rest of this content. Register or login from the sidebar.

Tweet Follow @pippinsplugins
the_content

8 comments on “Writing Your First WordPress Plugin Part 3”

  1. nicksp says:
    September 26, 2011 at 1:14 pm

    I realize that we begin to move a little bit deeper and deeper into WordPress plugin development and I like it ….even more – I’m still hungry ..
    So… keep it up mate!

    Cheers.

    Reply
  2. yellowhousedesign says:
    May 14, 2012 at 8:42 am

    Hey Pippin,
    Following the snippet you gave for appending information onto your User Bookmarks plugin, any reason this wouldn’t work?:

    add_filter('upb_list_bookmarks','mouldings_ub_gf_button');
    function mouldings_ub_gf_button($display) {
    if(is_user_logged_in()) {
    $display .= 'test';
    }
    return $display;
    }

    It doesn’t display that ‘test’ string. I’d like to have it appended onto the end of the bookmark list.

    Reply
    • Pippin says:
      May 15, 2012 at 12:59 pm

      No, that will not work. The function that outputs the list, upb_list_bookmarks(), does not include a filter.

      You will have to modify the plugin directly to do that.

    • yellowhousedesign says:
      May 15, 2012 at 1:17 pm

      Gotcha thanks

  3. Srdjan Repensek says:
    March 25, 2013 at 5:35 am

    Hello Pippin, great website, thanks for your effort!

    Is there Writing Your First WordPress Plugin Part 1 and Writing Your First WordPress Plugin Part 2 ?

    Best regards
    Srdjan

    Reply
    • Pippin says:
      March 25, 2013 at 10:21 am

      Yes, they are linked at the top of the post (see the gray box).

  4. Srdjan Repensek says:
    March 25, 2013 at 10:51 am

    Pippin, Thanks a lot :)

    Reply
  5. xean caile says:
    April 4, 2013 at 11:58 pm

    great post sir Pippin.. you helped me a lot…

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

  • Login

Lost your password?

Please enter your username or e-mail address. You will receive a new password via e-mail.

  • Facebook Become a Fan Like

  • Twitter Subscribe on Twitter Follow

  • YouTube Follow my Videos Subscribe

  • RSS Feed Subscribe with RSS Subscribe

Easy Digital Downloads

Most Loved

  • Love It Pro for WordPress
  • Write a “Love It” Plugin with Ajax to Let Users Love Their Favorite Posts / Pages
  • Simple Notices Pro Plugin for WordPress
  • User Bookmarks for WordPress
  • Front End Registration and Login Forms Plugin

Similar Plugins and Posts

  • Never Remove the Default the_content Filters in Themes
  • Playing Nice with the “the_content” Filter
  • User Submitted Image Gallery – Part 6

Latest Premium Content

  • Plugin Development 101 – Introduction to Adding Dashboard Menus
  • Plugin Development 101 – Intro to Loading Scripts and Styles
  • User Follow System – Part 5
  • Plugin Development 101 – Intro to Short Codes
  • Plugin Development 101 – Registering a Custom Post Type
  • Plugin Development 101 – Intro to Actions

Latest Tutorials

  • Submitting Your First Pull Request to a WordPress Plugin on Github (2)

    Github is an extremely popular tool for managing WordPress plugins, and one...

  • Plugin Development 101 – Introduction to Adding Dashboard Menus (1)

    Adding new menus, both top level and sub level, to the WordPress Dashboard is a really common task for plugins...

  • Plugin Development 101 – Intro to Loading Scripts and Styles (16)

    In this part of Plugin...

Enter your email to receive automated updates when new posts are published

Latest Tweets

  • WordPress Plugin Prices Are Too Low http://t.co/MmgH44WpXt via @chrislema
    May 23, 2013
  • Want to watch my presentation from #wcmia about Encouraging Community Development? Check out the video: http://t.co/vEPzPG4J8t
    May 23, 2013
  • Front End Product Submission for EDD is coming by the end of the week!
    May 23, 2013

Topics

contextual help attachments get_user_meta Sugar Event Calendar campaign monitor register_setting wp_enqueue_script hook Rémi Corson the_content shortcodes Tom McFarlin add_shortcode mail chimp plugin authors attachment image forms login short codes do_action Related posts comments recent posts post types apply_filters bbpress short code taxonomies custom post type images gallery Ajax Stripe taxonomy jquery users widgets add_filter easy content types add_action widget restrict content pro easy digital downloads

Weekly Newsletter

Useful Links

  • Join the Site
  • Plugin Store
  • Affiliate Area
  • Tag Index
  • Support the Site
  • Suggest a Tutorial
  • Random Post
  • Contact

Monthly Archives

(c) 2013 Pippin's Plugins