mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2025-04-19 05:35:36 +03:00
Moved uninstall placeholder from hook to uninstall.php
This commit is contained in:
parent
4f1cd0cbbf
commit
816e16c59f
2 changed files with 10 additions and 10 deletions
10
plugin-boilerplate/uninstall.php
Normal file
10
plugin-boilerplate/uninstall.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php
|
||||
/**
|
||||
* Fired when the plugin is uninstalled.
|
||||
*/
|
||||
|
||||
//if uninstall not called from WordPress exit
|
||||
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
|
||||
exit ();
|
||||
|
||||
// TODO: Define uninstall functionality here
|
Loading…
Add table
Add a link
Reference in a new issue