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
add_action( 'init', 'my_debug_function' ); function my_debug_function() { ...debug code }
. The plugin approach will let you easily enable and disable the triggering of your debug code. Adding a plugin options page to fire the code conditionally would be another step up.