Ready to get started?Download WordPress

Plugin Directory

Advanced Hooks API

Set of (experimental) wrappers that allow to hook more elaborate events without coding intermediary functions.

WordPress only operates with callbacks for actions and filters. That means that you always need to use callback, either:

  • provided by core (limited)
  • closures (messy)
  • coded by yourself (this - a lot)

This plugins offers number of custom add_* functions to hook more elaborate events:

  • add_action_with_args() - hook callback and arguments to run it with
  • add_filter_return() - override filter with arbitrary value
  • add_filter_prepend() and add_filter_append() - hook suffix/prefix values for filtered string and arrays
  • add_filter_replace() - edit substrings or array values in filter
  • add_action_once() and add_filter_once() - hook callback to only fire once
  • add_method() - quickly add class methods to hooks of same name

Both implementation and set of functions are experimental.

Development repository and issue tracker.


Requires: 3.2.1 or higher
Compatible up to: 3.5.2
Last Updated: 2012-12-18
Downloads: 590


5 stars
5 out of 5 stars


Got something to say? Need help?


Not enough data

0 people say it works.
0 people say it's broken.