dev-master
9999999-dev https://github.com/Rarst/advanced-hooks-apiSet of (experimental) wrappers that allow to hook more elaborate WordPress events without coding intermediary functions
MIT
The Requires
wordpress
Set of (experimental) wrappers that allow to hook more elaborate WordPress events without coding intermediary functions
Set of (experimental) wrappers that allow to hook more elaborate WordPress events without coding intermediary functions., (*1)
WordPress only operates with callbacks for actions and filters. That means that you always need to use callback, either:, (*2)
This plugins offers number of custom add_*
functions to hook more elaborate events:, (*3)
add_action_with_args()
- hook callback and arguments to run it withadd_filter_return()
- override filter with arbitrary valueadd_filter_prepend()
and add_filter_append()
- hook suffix/prefix values for filtered string and arraysadd_filter_replace()
- edit substrings or array values in filteradd_action_once()
and add_filter_once()
- hook callback to only fire onceadd_method()
- quickly add class methods to hooks of same nameBoth implementation and set of functions are experimental., (*4)
add_action_once()
and add_filter_once()
, props Eric MannSet of (experimental) wrappers that allow to hook more elaborate WordPress events without coding intermediary functions
MIT
wordpress