This entry is part 3 of 7 in the Writing Your First WordPress Plugins, Basic to Advanced Series
- 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.

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.
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.
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.
Gotcha thanks
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
Yes, they are linked at the top of the post (see the gray box).
Pippin, Thanks a lot
great post sir Pippin.. you helped me a lot…