Function zp_apply_filter
Performs a filtering operation on a zenphoto element or event. This function is called for each zenphoto element which supports plugin filtering. It is called after any zenphoto specific actions are completed and before the element is used.
Typical use: 1) Modify a variable if a function is attached to hook 'zp_hook' $zp_var = "default value"; $zp_var = zp_apply_filter( 'zp_hook', $zp_var ); 2) Trigger functions is attached to event 'zp_event' zp_apply_filter( 'zp_event' );
Returns an element which may have been filtered by a filter.
global array $_zp_filters storage for all of the filters
string |
$hook |
the name of the zenphoto element |
mixed |
$value = '' |
the value of the element before filtering |
mixed
|
mixed |