PluginProbe
Remove Schema / trunk
Remove Schema vtrunk
2.0.0 trunk 1.6.1 1.6.2
remove-schema / uninstall.php

uninstall.php in Remove Schema trunk, at uninstall.php

33 lines 664 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Uninstall Remove Schema.
4 *
5 * @package TimVanIersel\RemoveSchema
6 */
7
8 declare(strict_types=1);
9
10 if ( ! defined( 'ABSPATH' ) ) {
11 exit;
12 }
13
14 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
15 exit;
16 }
17
18 $remove_schema_autoload_loaded = false;
19
20 foreach ( array( 'vendor/autoload.php', 'autoload.php' ) as $remove_schema_autoload ) {
21 $remove_schema_autoload_path = __DIR__ . '/' . $remove_schema_autoload;
22
23 if ( file_exists( $remove_schema_autoload_path ) ) {
24 require $remove_schema_autoload_path;
25 $remove_schema_autoload_loaded = true;
26 break;
27 }
28 }
29
30 if ( $remove_schema_autoload_loaded ) {
31 TimVanIersel\RemoveSchema\Lifecycle\Uninstaller::uninstall();
32 }
33