Closed BenRutlandWeb closed 3 years ago
Describe the bug The event dispatch method requires a second parameter to be passed.
dispatch
To Reproduce Steps to reproduce the behavior:
Expected behavior The event to dispatch regardless of the presence of the second variable
Screenshots
Event::dispatch('wp_loaded');
Additional context Unlike do_action, apply_filters requires this to be set. Setting the second value to null is a workaround.
do_action
apply_filters
Describe the bug The event
dispatch
method requires a second parameter to be passed.To Reproduce Steps to reproduce the behavior:
Expected behavior The event to dispatch regardless of the presence of the second variable
Screenshots
Additional context Unlike
do_action
,apply_filters
requires this to be set. Setting the second value to null is a workaround.