mercredi 21 septembre 2016

Wordpress Plugin development - How to test register_unistall_hook function with PHPStorm?

OS : Windows 10 IDE : PHPStorm 2016.2.1 Tools installed : Composer / Wordpress Coding Standards (including PHP_CodeSniffer) / XDebug

I would like to do a Wordpress plugin. I chose phpStorm for the IDE and I managed to install some tools thanks by Composer like Wordpress Coding Standards and Xdebug. I have one problem : I would like to develop this wordpress plugin and test when the administrator unistall it. If I clic on the uninstall link in the wordpress admin, I remove the plugin that supposes to have two projects : one with only the plugin folder and one with wordpress and you spend your time to put the plugin folder in the wordpess project for each uninstall test that is quite stupid. Is there a way to create a wordpress plugin and test the register_uninstall_hook() function wihtout remove the plugin folder like a dev mode or sandbox or something like that ?

Aucun commentaire:

Enregistrer un commentaire