PluginProbe
BeyondWords – AI audio for publishers / 4.0.4
BeyondWords – AI audio for publishers v4.0.4
7.1.0 trunk 4.0.0 4.0.1 4.0.2 4.0.3 4.0.4 4.0.5 4.0.6 4.1.0 4.1.1 4.1.2 4.2.0 4.2.1 4.2.2 4.2.3 4.2.4 4.3.0 4.4.0 4.5.0 4.5.1 4.6.0 4.6.1 4.6.2 4.7.0 All 43 releases
speechkit / uninstall.php

uninstall.php in BeyondWords – AI audio for publishers 4.0.4, at uninstall.php

38 lines 841 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 use Beyondwords\Wordpress\Core\Uninstaller;
4
5 /**
6 * Uninstall script for BeyondWords.
7 *
8 * Executed when BeyondWords is uninstalled via built-in WordPress commands.
9 *
10 * @since 3.7.0
11 *
12 * @SuppressWarnings(PHPMD.ExitExpression)
13 */
14 function beyondwords_uninstall()
15 {
16 if (
17 ! defined('WP_UNINSTALL_PLUGIN') ||
18 ! WP_UNINSTALL_PLUGIN ||
19 dirname(WP_UNINSTALL_PLUGIN) !== dirname(plugin_basename(__FILE__))
20 ) {
21 status_header(404);
22 exit; // phpcs:ignore
23 }
24
25 if (! defined('BEYONDWORDS__PLUGIN_DIR')) {
26 define('BEYONDWORDS__PLUGIN_DIR', plugin_dir_path(__FILE__));
27 }
28
29 require BEYONDWORDS__PLUGIN_DIR . 'vendor/autoload.php';
30
31 Uninstaller::cleanupPluginOptions();
32 Uninstaller::cleanupCustomFields();
33 }
34
35 // phpcs:disable
36 beyondwords_uninstall();
37 // phpcs:enable
38