WordPress hooks

WordPress hooks
WordPress provides a powerful mechanism for plugin functions to be called at the exact time when we need them. This functionality is accomplished by using the so called hooks.

Every time you call a page from your browser, the WordPress engine goes through every possible function it needs to render the requested page. Somewhere along the way, you can “hook” up your function and use it to affect the end result.

There are two types of WordPress hooks:
Action hooks: These are triggered by WordPress events, for example, when someone creates a post or writes a comment.

Filter hooks: These are used to modify WordPress content on the fly, like title or content of the post as it is being served to the user.

Filter hooks
We learned that filter hooks (also referred to as simply ‘filters’) are functions that process WordPress content, whether it is about to be saved in the database or displayed in the user’s browser. WordPress expects these functions to modify the content they get and return it.

Related posts:

  1. RSS WordPress 2.8.1-2.8.2 Modify for Timeout issue
  2. About Cache

Twitter Digg Delicious Stumbleupon Technorati Facebook Email

Trackbacks/Pingbacks

  1. OSCAR - 03. Jul, 2010


    PillSpot.org. Canadian Health&Care.Special Internet Prices.No prescription online pharmacy.Best quality drugs. No prescription pills. Buy drugs online

    Buy:Seroquel.Female Pink Viagra.Zocor.SleepWell.Buspar.Benicar.Nymphomax.Aricept.Lasix.Cozaar.Zetia.Ventolin.Amoxicillin.Lipothin.Lipitor.Female Cialis.Advair.Acomplia.Wellbutrin SR.Prozac….

Leave a Reply