You have to match the number of arguments to the number of required parameters for a PHP function.
A common error is when you forget to specify the number of arguments to send when wiring up an event callback for add_action()
or add_filter()
. In this video, Tonya shows you why you have to specify this number.
Did you learn something new? Share your thoughts.