PluginProbe
BeyondWords – AI audio for publishers / trunk
BeyondWords – AI audio for publishers vtrunk
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 trunk, at uninstall.php

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