Number of arguments for hook tribe_events_after_html
-
Hook tribe_events_after_html says it takes two arguments but it is called in two places in the code with different number of arguments:
Advanced_Display get_after_events_html - apply_filter with 2 arguments
general.php tribe_events_after_html - apply_filter with 1 argumentBecause in one case it is called with 1 argument it is not possible to do an add_filter that expects 2 arguments as when called with one argument a PHP error will be generated.
Should both cases of this filter have 1 argument to reflect the v1 design, leaving hooktribe_events_views_v2_view_after_events_html for the cases where 2 arguments are needed.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Number of arguments for hook tribe_events_after_html’ is closed to new replies.