BLUE
PHP 7.4.33
Path:
/var/www/kiran-wp-test.bitkit.dk/httpdocs/wp-content/plugins/b2-sync
Run
Logout
Edit File
Size: 1.31 KB
Close
/var/www/kiran-wp-test.bitkit.dk/httpdocs/wp-content/plugins/b2-sync/uninstall.php
Text
Base64
<?php /** * Automatically invoked when plugin is uninstalled * We want to clear options saved in db. * * ref: https://developer.wordpress.org/plugins/plugin-basics/uninstall-methods/ * * @author Wasseem Khayrattee (@wkhayrattee) * * * NOTE to self: * A plugin should always have an uninstall.php - I QUOTE: * * "If the plugin can not be written without running code within the plugin, then * the plugin should create a file named 'uninstall.php' in the base plugin * folder. This file will be called, if it exists, during the uninstall process * bypassing the uninstall hook. The plugin, when using the 'uninstall.php' * should always check for the 'WP_UNINSTALL_PLUGIN' constant, before * executing." * * Source: https://github.com/WordPress/WordPress/blob/9dcd0110fb23b72ac4715ec1b527ba66db6ca7e4/wp-includes/plugin.php#L686-691 */ // if uninstall.php is not called by WordPress, die if (!defined('WP_UNINSTALL_PLUGIN')) { die; } /** * load our main file now with composer autoloading */ define('B2Sync_DS', DIRECTORY_SEPARATOR); define('B2Sync_PLUGIN_DIR', plugin_dir_path(__FILE__)); //has trailing slash at end require_once B2Sync_PLUGIN_DIR . B2Sync_DS . 'includes/vendor/autoload.php'; /** * Call our uninstall-cleanup process */ //info: 'uninstall.php called' \B2Sync\PluginClass::plugin_uninstall();
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 7
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
includes
DIR
-
drwxr-xr-x
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
src
DIR
-
drwxr-xr-x
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
views
DIR
-
drwxr-xr-x
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
b2-sync.php
2.75 KB
lrw-r--r--
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
composer.json
942 B
lrw-r--r--
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
composer.lock
33.89 KB
lrw-r--r--
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE
34.33 KB
lrw-r--r--
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
3.12 KB
lrw-r--r--
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
readme.txt
3.06 KB
lrw-r--r--
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
uninstall.php
1.31 KB
lrw-r--r--
2025-06-24 08:42:40
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).