Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
WordPress Top Plugins

You're reading from   WordPress Top Plugins Find and install the best plugins for generating and sharing content, building communities and generating revenue

Arrow left icon
Product type Paperback
Published in Sep 2010
Publisher Packt
ISBN-13 9781849511407
Length 254 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Brandon Corbin Brandon Corbin
Author Profile Icon Brandon Corbin
Brandon Corbin
Arrow right icon
View More author details
Toc

Table of Contents (15) Chapters Close

WordPress Top Plugins
Credits
About the Author
About the Reviewer
1. Preface
1. Plugin Basics 2. Generating Content FREE CHAPTER 3. Sharing Content 4. Style and Function 5. Building a Community with BuddyPress 6. Generating Revenue 7. Working with Multiple Authors 8. Security and Maintenance 9. Power Admin 10. Time for Action

How plugins work


WordPress has designated areas that developers can leverage within their plugin; these areas are rightfully named Hooks. Currently, the two types of hooks available are Actions and Filters.

An Action is a hook that's triggered during common blogging events such as creating a post or deleting a comment. For example, the publish_post action is triggered whenever a post is finally published. Similarly, the wp_insert_comment is fired each time a website visitor leaves a comment.

A Filter, like an Action, is a hook that plugin developers use to modify various types of data before it's added to your database or displaying it to the end user. For example, the the_content filter is applied whenever your blog renders a "Posts" content. The content_save_pre filter is applied right before a blog post's body content is saved to a database.

You can learn more about Actions, Filters, and WordPress Plugins in general at:

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image