File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/uninstall.php.tar
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/wp-postviews/uninstall.php 0000644 00000001404 15153452647 0025716 0 ustar 00 <?php
/*
* Uninstall plugin
*/
if ( !defined( 'WP_UNINSTALL_PLUGIN' ) )
exit ();
if ( is_multisite() ) {
$ms_sites = function_exists( 'get_sites' ) ? get_sites() : wp_get_sites();
if( 0 < count( $ms_sites ) ) {
foreach ( $ms_sites as $ms_site ) {
$blog_id = class_exists( 'WP_Site' ) ? $ms_site->blog_id : $ms_site['blog_id'];
switch_to_blog( $blog_id );
uninstall();
restore_current_blog();
}
}
} else {
uninstall();
}
function uninstall() {
global $wpdb;
$option_names = array( 'views_options', 'widget_views_most_viewed', 'widget_views' );
if( count( $option_names ) > 0 ) {
foreach( $option_names as $option_name ) {
delete_option( $option_name );
}
}
$wpdb->query( "DELETE FROM $wpdb->postmeta WHERE meta_key = 'views'" );
}
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/code-snippets/uninstall.php 0000644 00000000565 15153520447 0026005 0 ustar 00 <?php
/**
* Cleans up data created by this plugin
*
* @package Code_Snippets
* @since 2.0.0
*/
namespace Code_Snippets\Uninstall;
// Ensure this plugin is actually being uninstalled.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) || ( defined( 'CODE_SNIPPETS_PRO' ) && CODE_SNIPPETS_PRO ) ) {
return;
}
require_once __DIR__ . '/php/uninstall.php';
uninstall_plugin();
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/contact-form-7/uninstall.php 0000644 00000000767 15153523207 0025771 0 ustar 00 <?php
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit();
}
function wpcf7_delete_plugin() {
global $wpdb;
delete_option( 'wpcf7' );
$posts = get_posts(
array(
'numberposts' => -1,
'post_type' => 'wpcf7_contact_form',
'post_status' => 'any',
)
);
foreach ( $posts as $post ) {
wp_delete_post( $post->ID, true );
}
$wpdb->query( sprintf(
"DROP TABLE IF EXISTS %s",
$wpdb->prefix . 'contact_form_7'
) );
}
if ( ! defined( 'WPCF7_VERSION' ) ) {
wpcf7_delete_plugin();
}
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/woocommerce/uninstall.php 0000644 00000011326 15153620756 0025550 0 ustar 00 <?php
/**
* WooCommerce Uninstall
*
* Uninstalling WooCommerce deletes user roles, pages, tables, and options.
*
* @package WooCommerce\Uninstaller
* @version 2.3.0
*/
use Automattic\WooCommerce\Admin\Notes\Notes;
use Automattic\WooCommerce\Admin\ReportsSync;
use Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore;
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
global $wpdb, $wp_version;
wp_clear_scheduled_hook( 'woocommerce_scheduled_sales' );
wp_clear_scheduled_hook( 'woocommerce_cancel_unpaid_orders' );
wp_clear_scheduled_hook( 'woocommerce_cleanup_sessions' );
wp_clear_scheduled_hook( 'woocommerce_cleanup_personal_data' );
wp_clear_scheduled_hook( 'woocommerce_cleanup_logs' );
wp_clear_scheduled_hook( 'woocommerce_geoip_updater' );
wp_clear_scheduled_hook( 'woocommerce_tracker_send_event' );
wp_clear_scheduled_hook( 'woocommerce_cleanup_rate_limits' );
wp_clear_scheduled_hook( 'wc_admin_daily' );
wp_clear_scheduled_hook( 'generate_category_lookup_table' );
wp_clear_scheduled_hook( 'wc_admin_unsnooze_admin_notes' );
/*
* Only remove ALL product and page data if WC_REMOVE_ALL_DATA constant is set to true in user's
* wp-config.php. This is to prevent data loss when deleting the plugin from the backend
* and to ensure only the site owner can perform this action.
*/
if ( defined( 'WC_REMOVE_ALL_DATA' ) && true === WC_REMOVE_ALL_DATA ) {
// Load WooCommerce so we can access the container, install routines, etc, during uninstall.
require_once __DIR__ . '/woocommerce.php';
// Roles + caps.
WC_Install::remove_roles();
// Pages.
wp_trash_post( get_option( 'woocommerce_shop_page_id' ) );
wp_trash_post( get_option( 'woocommerce_cart_page_id' ) );
wp_trash_post( get_option( 'woocommerce_checkout_page_id' ) );
wp_trash_post( get_option( 'woocommerce_myaccount_page_id' ) );
wp_trash_post( get_option( 'woocommerce_edit_address_page_id' ) );
wp_trash_post( get_option( 'woocommerce_view_order_page_id' ) );
wp_trash_post( get_option( 'woocommerce_change_password_page_id' ) );
wp_trash_post( get_option( 'woocommerce_logout_page_id' ) );
if ( $wpdb->get_var( "SHOW TABLES LIKE '{$wpdb->prefix}woocommerce_attribute_taxonomies';" ) ) {
$wc_attributes = array_filter( (array) $wpdb->get_col( "SELECT attribute_name FROM {$wpdb->prefix}woocommerce_attribute_taxonomies;" ) );
} else {
$wc_attributes = array();
}
// Tables.
WC_Install::drop_tables();
// Delete options.
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'woocommerce\_%';" );
$wpdb->query( "DELETE FROM $wpdb->options WHERE option_name LIKE 'widget\_woocommerce\_%';" );
// Delete usermeta.
$wpdb->query( "DELETE FROM $wpdb->usermeta WHERE meta_key LIKE 'woocommerce\_%';" );
// Delete our data from the post and post meta tables, and remove any additional tables we created.
$wpdb->query( "DELETE FROM {$wpdb->posts} WHERE post_type IN ( 'product', 'product_variation', 'shop_coupon', 'shop_order', 'shop_order_refund' );" );
$wpdb->query( "DELETE meta FROM {$wpdb->postmeta} meta LEFT JOIN {$wpdb->posts} posts ON posts.ID = meta.post_id WHERE posts.ID IS NULL;" );
$wpdb->query( "DELETE FROM {$wpdb->comments} WHERE comment_type IN ( 'order_note' );" );
$wpdb->query( "DELETE meta FROM {$wpdb->commentmeta} meta LEFT JOIN {$wpdb->comments} comments ON comments.comment_ID = meta.comment_id WHERE comments.comment_ID IS NULL;" );
foreach ( wc_get_container()->get( OrdersTableDataStore::class )->get_all_table_names() as $cot_table ) {
// phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared
$wpdb->query( "DROP TABLE IF EXISTS {$cot_table}" );
}
// Delete terms if > WP 4.2 (term splitting was added in 4.2).
if ( version_compare( $wp_version, '4.2', '>=' ) ) {
// Delete term taxonomies.
foreach ( array( 'product_cat', 'product_tag', 'product_shipping_class', 'product_type' ) as $_taxonomy ) {
$wpdb->delete(
$wpdb->term_taxonomy,
array(
'taxonomy' => $_taxonomy,
)
);
}
// Delete term attributes.
foreach ( $wc_attributes as $_taxonomy ) {
$wpdb->delete(
$wpdb->term_taxonomy,
array(
'taxonomy' => 'pa_' . $_taxonomy,
)
);
}
// Delete orphan relationships.
$wpdb->query( "DELETE tr FROM {$wpdb->term_relationships} tr LEFT JOIN {$wpdb->posts} posts ON posts.ID = tr.object_id WHERE posts.ID IS NULL;" );
// Delete orphan terms.
$wpdb->query( "DELETE t FROM {$wpdb->terms} t LEFT JOIN {$wpdb->term_taxonomy} tt ON t.term_id = tt.term_id WHERE tt.term_id IS NULL;" );
// Delete orphan term meta.
if ( ! empty( $wpdb->termmeta ) ) {
$wpdb->query( "DELETE tm FROM {$wpdb->termmeta} tm LEFT JOIN {$wpdb->term_taxonomy} tt ON tm.term_id = tt.term_id WHERE tt.term_id IS NULL;" );
}
}
// Clear any cached data that has been removed.
wp_cache_flush();
}
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/all-in-one-seo-pack/uninstall.php 0000644 00000003165 15153633122 0026655 0 ustar 00 <?php
/**
* Uninstall AIOSEO
*
* @since 4.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
// Load plugin file.
require_once 'all_in_one_seo_pack.php';
// In case any of the versions - Lite or Pro - is still activated we bail.
// Meaning, if you delete Lite while the Pro is activated we bail, and vice-versa.
if (
defined( 'AIOSEO_FILE' ) &&
is_plugin_active( plugin_basename( AIOSEO_FILE ) )
) {
return;
}
// Disable Action Scheduler Queue Runner.
if ( class_exists( 'ActionScheduler_QueueRunner' ) ) {
ActionScheduler_QueueRunner::instance()->unhook_dispatch_async_request();
}
// Drop our custom tables and data.
aioseo()->uninstall->dropData();
// Remove translation files.
global $wp_filesystem; // phpcs:ignore Squiz.NamingConventions.ValidVariableName
$languages_directory = defined( 'WP_LANG_DIR' ) ? trailingslashit( WP_LANG_DIR ) : trailingslashit( WP_CONTENT_DIR ) . 'languages/'; // phpcs:ignore Squiz.NamingConventions.ValidVariableName
$translations = glob( wp_normalize_path( $languages_directory . 'plugins/aioseo-*' ) ); // phpcs:ignore Squiz.NamingConventions.ValidVariableName
if ( ! empty( $translations ) ) {
foreach ( $translations as $file ) {
$wp_filesystem->delete( $file ); // phpcs:ignore Squiz.NamingConventions.ValidVariableName
}
}
$translations = glob( wp_normalize_path( $languages_directory . 'plugins/all-in-one-seo-*' ) ); // phpcs:ignore Squiz.NamingConventions.ValidVariableName
if ( ! empty( $translations ) ) {
foreach ( $translations as $file ) {
$wp_filesystem->delete( $file ); // phpcs:ignore Squiz.NamingConventions.ValidVariableName
}
} var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/yith-woocommerce-wishlist/uninstall.php0000644 00000003642 15153655246 0030373 0 ustar 00 <?php
/**
* Uninstall plugin
*
* @author YITH <plugins@yithemes.com>
* @package YITH\Wishlist
* @version 2.0.16
*/
// If uninstall not called from WordPress exit.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
/**
* Uninstall completely wishlist from the site
*
* @return void
* @since 3.0.0
*/
function yith_wcwl_uninstall() {
global $wpdb;
if ( defined( 'YITH_WCWL_REMOVE_ALL_DATA' ) && true === YITH_WCWL_REMOVE_ALL_DATA && ! defined( 'YITH_WCWL_PREMIUM' ) ) {
// define local private attribute.
$wpdb->yith_wcwl_items = $wpdb->prefix . 'yith_wcwl';
$wpdb->yith_wcwl_wishlists = $wpdb->prefix . 'yith_wcwl_lists';
// Delete option from options table.
delete_option( 'yith_wcwl_version' );
delete_option( 'yith_wcwl_db_version' );
$wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->options} WHERE option_name LIKE %s", 'yith_wcwl_%' ) ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
// delete pages created for this plugin.
wp_delete_post( get_option( 'yith-wcwl-pageid' ), true );
// remove any additional options and custom table.
// phpcs:disable WordPress.DB.DirectDatabaseQuery, WordPress.DB.PreparedSQL.NotPrepared
$sql = "DROP TABLE IF EXISTS `{$wpdb->yith_wcwl_items}`";
$wpdb->query( $sql );
$sql = "DROP TABLE IF EXISTS `{$wpdb->yith_wcwl_wishlists}`";
$wpdb->query( $sql );
// phpcs:enable WordPress.DB.DirectDatabaseQuery, WordPress.DB.PreparedSQL.NotPrepared
}
}
if ( ! is_multisite() ) {
yith_wcwl_uninstall();
} else {
global $wpdb;
$blog_ids = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs}" ); // phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery, WordPress.DB.DirectDatabaseQuery.NoCaching
$original_blog_id = get_current_blog_id();
foreach ( $blog_ids as $blog_to_process ) {
switch_to_blog( $blog_to_process );
yith_wcwl_uninstall();
}
switch_to_blog( $original_blog_id );
}
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/broken-link-checker-seo/uninstall.php 0000644 00000000736 15153657152 0027635 0 ustar 00 <?php
/**
* Uninstall Broken Link Checker.
*
* @since 1.0.0
*/
// Exit if accessed directly.
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
exit;
}
// Load plugin file.
require_once 'aioseo-broken-link-checker.php';
// Disable Action Scheduler Queue Runner.
if ( class_exists( 'ActionScheduler_QueueRunner' ) ) {
ActionScheduler_QueueRunner::instance()->unhook_dispatch_async_request();
}
// Drop our custom tables.
aioseoBrokenLinkChecker()->core->uninstall->dropData(); var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/google-listings-and-ads/uninstall.php 0000644 00000004713 15153726046 0027645 0 ustar 00 <?php
/**
* Google for WooCommerce Uninstall
*
* Uninstalling Google for WooCommerce unschedules any pending jobs, deletes its custom tables, related transients,
* options, and product metadata.
*
* @since 1.3.0
*/
declare( strict_types=1 );
use Automattic\WooCommerce\GoogleListingsAndAds\Autoloader;
use Automattic\WooCommerce\GoogleListingsAndAds\DB\TableManager;
use Automattic\WooCommerce\GoogleListingsAndAds\Options\Options;
use Automattic\WooCommerce\GoogleListingsAndAds\Options\Transients;
use Automattic\WooCommerce\GoogleListingsAndAds\Product\Attributes\AttributeManager;
use Automattic\WooCommerce\GoogleListingsAndAds\Product\ProductMetaHandler;
defined( 'WP_UNINSTALL_PLUGIN' ) || exit;
/** @see \Automattic\WooCommerce\GoogleListingsAndAds\PluginHelper::get_slug() */
define( 'WC_GLA_SLUG', 'gla' );
/** @see \Automattic\WooCommerce\GoogleListingsAndAds\PluginHelper::get_meta_key_prefix() */
define( 'WC_GLA_METAKEY_PREFIX', '_wc_gla' );
/*
* Only remove ALL plugin data if WC_GLA_REMOVE_ALL_DATA constant is set to true in user's
* wp-config.php. This is to prevent data loss when deleting the plugin from the backend
* and to ensure only the site owner can perform this action.
*/
if ( defined( 'WC_GLA_REMOVE_ALL_DATA' ) && true === WC_GLA_REMOVE_ALL_DATA ) {
// Load and initialize the autoloader.
require_once __DIR__ . '/src/Autoloader.php';
if ( ! Autoloader::init() ) {
return;
}
global $wpdb;
// un-schedule all ActionScheduler jobs for GLA
if ( function_exists( 'as_unschedule_all_actions' ) ) {
as_unschedule_all_actions( null, null, WC_GLA_SLUG );
}
// drop custom tables
foreach ( TableManager::get_all_table_names() as $table ) {
// phpcs:ignore WordPress.DB.PreparedSQL, WordPress.DB.DirectDatabaseQuery.SchemaChange
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}" . WC_GLA_SLUG . "_{$table}" );
}
// delete options
foreach ( Options::get_all_option_keys() as $option ) {
delete_option( WC_GLA_SLUG . "_{$option}" );
}
// delete transients
foreach ( Transients::get_all_transient_keys() as $transient ) {
delete_transient( WC_GLA_SLUG . "_{$transient}" );
}
// delete products metadata
foreach ( ProductMetaHandler::get_all_meta_keys() as $meta_key ) {
delete_post_meta_by_key( WC_GLA_METAKEY_PREFIX . "_{$meta_key}" );
}
// delete products attributes
foreach ( AttributeManager::get_available_attribute_ids() as $attribute_id ) {
delete_post_meta_by_key( WC_GLA_METAKEY_PREFIX . "_{$attribute_id}" );
}
}
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/code-snippets/php/uninstall.php 0000644 00000004121 15153750036 0026563 0 ustar 00 <?php
/**
* Functions for cleaning data when the plugin is uninstalled.
*
* @package Code_Snippets
*
* phpcs:disable WordPress.DB.DirectDatabaseQuery.NoCaching
*/
namespace Code_Snippets\Uninstall;
/**
* Determine whether the option for allowing a complete uninstallation is enabled.
*
* @return boolean
*/
function complete_uninstall_enabled(): bool {
$unified = false;
if ( is_multisite() ) {
$menu_perms = get_site_option( 'menu_items', array() );
$unified = empty( $menu_perms['snippets_settings'] );
}
$settings = $unified ? get_site_option( 'code_snippets_settings' ) : get_option( 'code_snippets_settings' );
return isset( $settings['general']['complete_uninstall'] ) && $settings['general']['complete_uninstall'];
}
/**
* Clean up data created by this plugin for a single site
*
* phpcs:disable WordPress.DB.DirectDatabaseQuery.SchemaChange
*/
function uninstall_current_site() {
global $wpdb;
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}snippets" );
delete_option( 'code_snippets_version' );
delete_option( 'recently_activated_snippets' );
delete_option( 'code_snippets_settings' );
delete_option( 'code_snippets_cloud_settings' );
delete_transient( 'cs_codevault_snippets' );
delete_transient( 'cs_local_to_cloud_map' );
}
/**
* Clean up data created by this plugin on multisite.
*
* phpcs:disable WordPress.DB.DirectDatabaseQuery.SchemaChange
*/
function uninstall_multisite() {
global $wpdb;
// Loop through sites.
$blog_ids = get_sites( [ 'fields' => 'ids' ] );
foreach ( $blog_ids as $site_id ) {
switch_to_blog( $site_id );
uninstall_current_site();
}
restore_current_blog();
// Remove network snippets table.
$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}ms_snippets" );
// Remove saved options.
delete_site_option( 'code_snippets_version' );
delete_site_option( 'recently_activated_snippets' );
}
/**
* Uninstall the Code Snippets plugin.
*
* @return void
*/
function uninstall_plugin() {
if ( complete_uninstall_enabled() ) {
if ( is_multisite() ) {
uninstall_multisite();
} else {
uninstall_current_site();
}
}
}
httpdocs/wp-content/plugins/google-analytics-for-wordpress/includes/admin/uninstall.php 0000644 00000001473 15154603342 0034116 0 ustar 00 var/www/vhosts/uyarreklam.com.tr <?php
/**
* Remove various options used in the plugin.
*/
function monsterinsights_uninstall_remove_options() {
// Remove usage tracking options.
delete_option( 'monsterinsights_usage_tracking_config' );
delete_option( 'monsterinsights_usage_tracking_last_checkin' );
// Remove version options.
delete_option( 'monsterinsights_db_version' );
delete_option( 'monsterinsights_version_upgraded_from' );
// Remove other options used for display.
delete_option( 'monsterinsights_email_summaries_infoblocks_sent' );
delete_option( 'monsterinsights_float_bar_hidden' );
delete_option( 'monsterinsights_frontend_tracking_notice_viewed' );
delete_option( 'monsterinsights_admin_menu_tooltip' );
delete_option( 'monsterinsights_review' );
// Delete addons transient.
delete_transient( 'monsterinsights_addons' );
}