Skip to content

Commit

Permalink
feat: cleanup when plugin is uninstalled
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaucau committed Nov 19, 2023
1 parent 71611ef commit 976bd57
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions uninstall.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace ACP\AiAltGenerator;

if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
http_response_code( 403 );
die;
}

require __DIR__ . '/vendor/autoload.php';

delete_option( AltGeneratorPlugin::OPTION_NAME );

0 comments on commit 976bd57

Please sign in to comment.