Uncaught ArgumentCountError: Too few arguments to function
-
Great plugin. I can’t believe it’s so slim! But I’ve run into a problem with the custom form fields in testing. It’s throwing a 1 passed in C:\wamp64\www\test\wp-includes\class-wp-hook.php on line 287 and exactly 2 expected in C:\wamp64\www\test\wp-content\themes\test_theme\functions.php on line 98 Error on the [code]add_filter( 'lcf_additional_field_values', function( $val, $post_data ) {[/code] line.
I’ve tried it on two different site installs with different themes and function sheets and I get the same error in both. It’s something to do with $value = call_user_func_array( $the_[‘function’], $args );
I’m running these on localhost so I can’t provide a link.
- The topic ‘Uncaught ArgumentCountError: Too few arguments to function’ is closed to new replies.