=== Advanced Hooks API === Contributors: Rarst Tags: hooks Requires at least: 3.2.1 Tested up to: 3.2.1 Stable tag: 0.5 Set of (experimental) wrappers that allow to hook more elaborate events without coding intermediary functions. == Description == 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_method()` - quickly add class methods to hooks of same name Both implementation and set of functions are experimental. Feel free to discuss and contribute to concept in [implementing advanced add_* function wrappers](http://wordpress.stackexchange.com/q/11231/847) question on WPSE. == Installation == 1. Upload `advanced-hooks-api` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the `Plugins` menu in WordPress == Changelog == = 0.5 = * (enhancement) new add_method() function * (enhancement) more return points for better logic and compatibility = 0.4.1 = * (bugfix) action() method expected argument passed (to be compatible with filters), changed to func_get_arg() = 0.4 = * Initial public repository release.