# speechkit/trunk/uninstall.php

BeyondWords – AI audio for publishers, version trunk. 38 lines.

- Page: https://pluginprobe.com/plugins/speechkit/trunk/code/uninstall.php
- Raw: https://pluginprobe.com/plugins/speechkit/trunk/raw/uninstall.php
- Modified: 2026-08-12T09:46:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/speechkit/trunk/code/uninstall.php#L10-L20`.

```php
<?php

declare( strict_types = 1 );

defined( 'ABSPATH' ) || exit;

use BeyondWords\Core\Uninstaller;

/**
 * Uninstall script for BeyondWords.
 *
 * @since 3.7.0
 *
 * @SuppressWarnings(PHPMD.ExitExpression)
 */
function beyondwords_uninstall() {
	if (
		! defined( 'WP_UNINSTALL_PLUGIN' ) ||
		! WP_UNINSTALL_PLUGIN ||
		dirname( WP_UNINSTALL_PLUGIN ) !== dirname( plugin_basename( __FILE__ ) )
	) {
		status_header( 404 );
        exit; // phpcs:ignore
	}

	if ( ! defined( 'BEYONDWORDS__PLUGIN_DIR' ) ) {
		define( 'BEYONDWORDS__PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
	}

	require BEYONDWORDS__PLUGIN_DIR . 'vendor/autoload.php';

	Uninstaller::run();
}

// phpcs:disable
beyondwords_uninstall();
// phpcs:enable

```
