at path:
ROOT
/
wp-content
/
plugins
/
polylang-wc
/
uninstall.php
run:
R
W
Run
admin
DIR
2026-06-16 01:07:17
R
W
Run
css
DIR
2026-06-16 01:07:17
R
W
Run
frontend
DIR
2026-06-16 01:07:17
R
W
Run
include
DIR
2026-06-16 01:07:17
R
W
Run
js
DIR
2026-06-16 01:07:17
R
W
Run
languages
DIR
2026-06-16 01:07:17
R
W
Run
modules
DIR
2026-06-16 01:07:17
R
W
Run
plugins
DIR
2026-06-16 01:07:17
R
W
Run
vendor
DIR
2026-06-16 01:07:17
R
W
Run
LICENSE
34.32 KB
2026-06-16 01:07:17
R
W
Run
Delete
Rename
polylang-wc.php
15.7 KB
2026-06-16 01:07:17
R
W
Run
Delete
Rename
readme.txt
30.42 KB
2026-06-16 01:07:17
R
W
Run
Delete
Rename
uninstall.php
883 By
2026-06-16 01:07:17
R
W
Run
Delete
Rename
error_log
up
📄
uninstall.php
Save
<?php /** * @package Polylang-WC */ // If uninstall not called from WordPress exit. if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) { exit(); } /** * Manages Polylang for WooCommerce uninstallation. * * @since 0.4 */ class PLLWC_Uninstall { /** * Constructor: manages uninstall for multisite. * * @since 0.4 */ public function __construct() { global $wpdb; // Check if it is a multisite uninstall - if so, run the uninstall function for each blog id. if ( is_multisite() ) { foreach ( $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" ) as $blog_id ) { switch_to_blog( $blog_id ); $this->uninstall(); } restore_current_blog(); } else { $this->uninstall(); } } /** * Removes ALL plugin data. * * @since 0.4 */ public function uninstall() { // Delete options. delete_option( 'polylang-wc' ); } } new PLLWC_Uninstall();