Debugging Technique Question re: functions.php

I needed to develop a technique to delete some data from the database.

The technique will be part of a plugin at some point.

For immediate results, I was editing functions.php on my local dev site, placing the necessary commands at the bottom of the file and reloading the page upon saving.

Is this considered bad form?

If so, what’s the recommended method for running small bits of test code as described?

Fwiw, here is a link to the code in question: https://wordpress.stackexchange.com/a/267886/60200

Read more here: Debugging Technique Question re: functions.php

Leave a Reply

Your email address will not be published. Required fields are marked *