• Skip to main content

Eric L. Ingram

WordPress Consultant

  • HOME
  • ABOUT
  • WORK

What is a Hook?

August 18, 2011 By Eric Ingram


Hooks, Actions and Filters

Hooks are provided by WordPress to allow your plugin to ‘hook into’ the rest of WordPress; that is, to call functions in your plugin at specific times, and thereby set your plugin in motion. There are two kinds of hooks:

  1. Actions: Actions are the hooks that the WordPress core launches at specific points during execution, or when specific events occur. Your plugin can specify that one or more of its PHP functions are executed at these points, using the Action API.
  2. Filters: Filters are the hooks that WordPress launches to modify text of various types before adding it to the database or sending it to the browser screen. Your plugin can specify that one or more of its PHP functions is executed to modify specific types of text at these times, using the Filter API.

You can sometimes accomplish the same goal with either an action or a filter. For example, if you want your plugin to change the text of a post, you might add an action function to publish_post (so the post is modified as it is saved to the database), or a filter function to the_content (so the post is modified as it is displayed in the browser screen). speed test website .

Vous pensez que l’homme et la femme devraient être égaux dans tous? Notre “Kamasutra” d’accord avec vous! Vous devriez essayer cette pose sexuelle! Elle est directement incarne l’idée d’égalité sexuelle, car dans un homme et une femme se déplacent de la même manière. Bien sûr, vous ne serez pas en mesure de faire des frictions puissantes, mais vous pouvez vous balancer lentement les uns envers les autres. L’essentiel est de ne https://pharmaciebelgique.com avoir de rythme et d’essayer de se déplacer de manière synchrone. Le frottement sur son logo fournira la stimulation du clitoris. De plus, puisque dans ce sexe postal, vous avez des mains gratuites, vous pouvez vous caresser dans les endroits les plus intimes.

Filed Under: Durham Web Design, WordPress Tagged With: Action, Filters, Hooks, WordPress

Built to Last.

Copyright © 2022 ·Genesis Framework · Site by Eric Ingram