I want to make several markup changes to
wp_list_comments() that requires me to include a new walker.
Here are the steps I’m using:
- Create new
namespace App;to the top of this new comments file, followed by a named function
sage_comments()containing new code for the comments section to replace the existing comments function reference
- Add newly created file to Sage required files array in
wp_list_comments()to include within the array
'walker' => 'sage_comments()'.
After completing this, I get the following error on any post containing a comment section
Fatal error: Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Class 'sage_comments' not found in [path/to/app/uploads/cache/cachefile.php on line 15.
What am I missing or doing wrong?