Function zp_register_filter
Registers a filtering function Filtering functions are used to post process zenphoto elements or to trigger functions when a filter occur
Typical use: zp_register_filter('some_hook', 'function_handler_for_hook');
global array $_zp_filters Storage for all of the filters
string |
$hook |
the name of the zenphoto element to be filtered |
callable |
$function_name |
the name of the function that is to be called. |
integer |
$priority = NULL |
<p>optional. Used to specify the order in which the functions associated with a particular action are executed (default=5, higher=earlier execution, and functions with the same priority are executed in the order in which they were added to the filter)</p> |