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


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: