ArgumentCountError thrown

Too few arguments to function italiawp_custom_gallery(), 2 passed in /var/www/html/wp-includes/class-wp-hook.php on line 307 and exactly 3 expected