Closed williamfridh closed 4 months ago
Added the following code to uninstall.php: ´´´ if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { die; }
The uninstall.php is not being called properly. And double check if transients needs to be removed too.
No transient needs to be removed via uninstall.php as the only one being used is short lived.
Nevermind. The uninstall.php file is executed as it should.
Please secure your uninstall code. Please review the following links and make sure you're not letting unauthorized users access the uninstall command, and that you're allowing it to be called on an actual uninstall.
https://developer.wordpress.org/reference/functions/register_uninstall_hook/
https://developer.wordpress.org/plugins/the-basics/uninstall-methods/
From your plugin:
pattern_friend/uninstall.php:14