How can I execute some small piece of PHP code in a sandbox area of my WP?

Best way for execute any PHP code during development its Console from Developer plugin. You can install Developer plugin, and activate console module. “Debug” link will appear in top right corner in your admin bar. You can go there, and execute any php code you like.

Leave a Comment