✘✘ GRAYBYTE WORDPRESS FILE MANAGER ✘✘

​🇳​​🇦​​🇲​​🇪♯➤ server366.web-hosting.com ​🇻​♯➤ 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP 🇾​♯➤ 2025

𝗛𝗢𝗠𝗘 𝗜𝗗 ♯➤ 67.223.118.204 ♯➤ 𝗔𝗗𝗠𝗜𝗡 𝗜𝗗 216.73.216.243
𝗢𝗣𝗧𝗜𝗢𝗡𝗦 ♯ CRL ♯➤ 𝗢𝗞 ┃ WGT ♯➤ 𝗢𝗞 ┃ SDO ♯➤ 𝗢𝗙𝗙 ┃ PKEX ♯➤ 𝗢𝗙𝗙
𝗗𝗘𝗔𝗖𝗧𝗜𝗩𝗔𝗧𝗘𝗗 ♯➤ 𝗔𝗟𝗟 𝗪𝗢𝗥𝗞𝗜𝗡𝗚....

𝗛𝗢𝗠𝗘
𝗖𝗨𝗥𝗥𝗘𝗡𝗧 𝗙𝗜𝗟𝗘 : /home/builxejc/public_html/wp-content/plugins/wordpress-popup/inc//hustle-deletion.php
<?php // phpcs:ignore WordPress.Files.FileName.InvalidClassFileName
/**
 * Hustle_Deletion
 *
 * @package Hustle
 */

/**
 * Methods for the plugin's data deletion.
 *
 * @since 4.0.3
 */
class Hustle_Deletion {

	/**
	 * Reset onboarding notification
	 *
	 * @since 4.0.3
	 */
	public static function hustle_reset_notifications() {
		$meta_key = 'hustle_dismissed_notifications';
		delete_metadata( 'user', '', $meta_key, '', true );
	}

	/**
	 * Delete custom options
	 *
	 * @since 4.0.3
	 */
	public static function hustle_delete_custom_options() {
		delete_option( 'hustle_version' );
		delete_site_option( 'hustle_version' );
		delete_option( 'hustle_color_index' );
		delete_option( 'hustle_database_version' );
		delete_option( 'hustle_unsubscribe_nonces' );
		delete_option( 'hustle_migrations' );
		delete_option( 'hustle_previous_version' );
		delete_option( 'hustle_30_migration_data' );
		delete_option( 'hustle_settings' );
		delete_option( 'hustle_ss_refresh_counters' );
		delete_option( 'wpoi-county-id-map' );
		delete_option( 'hustle_custom_nonce' );
		delete_option( 'hustle_activated_flag' );
		delete_option( 'hustle_new_welcome_notice_dismissed' );
		delete_option( 'hustle_popup_migrated' );
		delete_option( 'hustle_global_unsubscription_settings' );
		delete_option( 'hustle_global_email_settings' );
		delete_option( 'hustle_database_version' );
		delete_option( 'widget_hustle_module_widget' );
		delete_option( 'opt_in_database_version' );
		delete_option( 'hustle_custom_palettes' );
		delete_option( 'hustle_notice_stop_support_m2' );
		delete_option( 'hustle-hide_tutorials' );
		delete_option( 'hustle_conversion_logs' );
	}

	/**
	 * Delete options created by Packaged Hustle Addons.
	 *
	 * @since 4.0.3
	 * @param array $addons Existing addons as $slug => Hustle_Provider_Abstract instance.
	 */
	public static function hustle_delete_addon_options( $addons = array() ) {
		delete_option( 'hustle_activated_providers' );
		if ( empty( $addons ) ) {
			$addons = array_keys( Hustle_Provider_Utils::get_registered_providers_list() );
		}

		foreach ( $addons as $slug ) {
			delete_option( "hustle_provider_{$slug}_version" );
			delete_option( "hustle_provider_{$slug}_settings" );

			if ( 'constantcontact' === $slug || 'hubspot' === $slug ) {
				delete_option( 'hustle_opt-in-constant_contact-token' );
				delete_option( "hustle_opt-in-{$slug}-token" );
				delete_option( "hustle_{$slug}_referer" );
				delete_option( "hustle_{$slug}_current_page" );

			} elseif ( 'aweber' === $slug ) {
				// Old options.
				delete_option( "{$slug}_access_token" );
				delete_option( "{$slug}_access_secret" );
				delete_option( "{$slug}_aut_code" );
				delete_option( "{$slug}_consumer_secret" );
				delete_option( "{$slug}_consumer_key" );

			}
		}
	}

	/**
	 * Clear modules.
	 *
	 * @since 4.0.3
	 */
	public static function hustle_clear_modules() {
		global $wpdb;

		// Get max module id.
		$max_module_id_query = "SELECT MAX(`module_id`) FROM {$wpdb->prefix}hustle_modules";
		$max_module_id       = (int) $wpdb->get_var( $max_module_id_query ); // phpcs:ignore

		// Get max module meta id.
		$max_module_meta_id_query = "SELECT MAX(`meta_id`) FROM {$wpdb->prefix}hustle_modules_meta";
		$max_module_meta_id       = (int) $wpdb->get_var( $max_module_meta_id_query ); // phpcs:ignore

		// Delete module cache.
		if ( $max_module_id && is_numeric( $max_module_id ) && $max_module_id > 0 ) {
			for ( $i = 1; $i <= $max_module_id; $i++ ) {
				wp_cache_delete( $i, 'hustle_model_data' );
				wp_cache_delete( $i, 'hustle_module_meta' );
				wp_cache_delete( $i, 'hustle_subscribed_emails' );
				wp_cache_delete( $i, 'hustle_module_type' );
			}
		}

		/**
		 * Hook to reset auto increment on entries reset.
		 * This is discouraged becuase users might run into
		 * cookie conflict.
		 *
		 * @since 4.0.3
		 *
		 * @param boolen
		 */
		$maintain_auto_increment = apply_filters( 'maintain_modules_auto_increment', true );

		if ( $maintain_auto_increment ) {

			// Alter auto increment for cookie compatibility.
			$alter_modules = $wpdb->prepare(
				"ALTER TABLE {$wpdb->prefix}hustle_modules
				AUTO_INCREMENT = %d",
				++$max_module_id
			);
			$alter_meta    = $wpdb->prepare(
				"ALTER TABLE {$wpdb->prefix}hustle_modules_meta
				AUTO_INCREMENT = %d",
				++$max_module_meta_id
			);

			$wpdb->query( "TRUNCATE {$wpdb->prefix}hustle_modules" );// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery
			$wpdb->query( $alter_modules );// phpcs:ignore

			$wpdb->query( "TRUNCATE {$wpdb->prefix}hustle_modules_meta" );// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery
			$wpdb->query( $alter_meta );// phpcs:ignore
		}
	}

	/**
	 * Clear submissions.
	 *
	 * @since 4.0.3
	 */
	public static function hustle_clear_module_submissions() {
		global $wpdb;

		// Delete entry cache.
		$max_entry_id_query = "SELECT MAX(`entry_id`) FROM {$wpdb->prefix}hustle_entries";
		$max_entry_id       = $wpdb->get_var( $max_entry_id_query ); // phpcs:ignore

		// Get entry meta id.
		$max_entry_meta_id_query = "SELECT MAX(`meta_id`) FROM {$wpdb->prefix}hustle_entries_meta";
		$max_entry_meta_id       = $wpdb->get_var( $max_entry_meta_id_query ); // phpcs:ignore

		if ( $max_entry_id && is_numeric( $max_entry_id ) && $max_entry_id > 0 ) {
			for ( $i = 1; $i <= $max_entry_id; $i++ ) {
				wp_cache_delete( $i, 'Hustle_Entry_Model' );
			}
		}

		$wpdb->query( "TRUNCATE {$wpdb->prefix}hustle_entries" );// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery

		$wpdb->query( "TRUNCATE {$wpdb->prefix}hustle_entries_meta" );// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery

		/**
		 * Hook to reset auto increment on entries reset.
		 *
		 * This is discouraged becuase users might run into
		 * cookie conflict.
		 *
		 * @since 4.0.2
		 *
		 * @param boolen
		 */
		$maintain_auto_increment = apply_filters( 'maintain_entries_auto_increment', true );

		if ( $maintain_auto_increment ) {

			// Alter auto increment for cookie compatibility.
			$alter_entries = $wpdb->prepare(
				"ALTER TABLE {$wpdb->prefix}hustle_entries
				AUTO_INCREMENT = %d",
				++$max_entry_id
			);

			$alter_meta = $wpdb->prepare(
				"ALTER TABLE {$wpdb->prefix}hustle_entries_meta
				AUTO_INCREMENT = %d",
				++$max_entry_meta_id
			);
			$wpdb->query( $alter_entries );// phpcs:ignore
			$wpdb->query( $alter_meta );// phpcs:ignore
		}
		wp_cache_delete( 'all_module_types', 'hustle_total_entries' );
		wp_cache_delete( 'global_count', 'hustle_total_entries' );
		wp_cache_delete( 'hustle_icontact_account_id', 'HUSTLE_ICONTACT_API_CACHE' );
		wp_cache_delete( 'hustle_icontact_client_folder_id', 'HUSTLE_ICONTACT_API_CACHE' );
	}

	/**
	 * Clear views.
	 *
	 * @since 4.0.3
	 */
	public static function hustle_clear_module_views() {
		global $wpdb;
		$wpdb->query( "TRUNCATE {$wpdb->prefix}hustle_tracking" );// phpcs:ignore WordPress.DB.DirectDatabaseQuery.DirectQuery,WordPress.DB.DirectDatabaseQuery.NoCaching
	}

	/**
	 * Drop custom tables.
	 *
	 * @since 4.0.3
	 */
	public static function hustle_drop_custom_tables() {
		global $wpdb;
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}hustle_entries" );// phpcs:ignore
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}hustle_entries_meta" );// phpcs:ignore
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}hustle_modules" );// phpcs:ignore
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}hustle_modules_meta" );// phpcs:ignore
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}hustle_tracking" );// phpcs:ignore
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}optin_meta" );// phpcs:ignore
		$wpdb->query( "DROP TABLE IF EXISTS {$wpdb->prefix}optins" );// phpcs:ignore
	}

	/**
	 * Removes cronjobs.
	 *
	 * @since 4.3.3
	 */
	public static function clear_cronjobs() {
		// Remove the cron for refreshing Aweber's token.
		wp_clear_scheduled_hook( 'hustle_aweber_token_refresh' );
	}
}


Current_dir [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ] Document_root [ 𝗪𝗥𝗜𝗧𝗘𝗔𝗕𝗟𝗘 ]


[ Back ]
𝗡𝗔𝗠𝗘
𝗦𝗜𝗭𝗘
𝗟𝗔𝗦𝗧 𝗧𝗢𝗨𝗖𝗛
𝗨𝗦𝗘𝗥
𝗦𝗧𝗔𝗧𝗨𝗦
𝗙𝗨𝗡𝗖𝗧𝗜𝗢𝗡𝗦
..
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
display-conditions
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
front
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
helpers
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
metas
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
multisite
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
palettes
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
provider
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
providers
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
templates
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
update
--
9 Jun 2026 8.38 AM
builxejc / builxejc
0755
class-hustle-admin-page-abstract.php
17.655 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
class-hustle-auth-token.php
2.666 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
class-hustle-condition-factory.php
0.964 KB
26 May 2020 3.58 PM
builxejc / builxejc
0644
class-hustle-cross-sell.php
1.597 KB
15 Sep 2025 10.29 AM
builxejc / builxejc
0644
class-hustle-dashboard-admin.php
15.469 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
class-hustle-data.php
3.123 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
class-hustle-db.php
8.669 KB
12 Oct 2023 2.01 PM
builxejc / builxejc
0644
class-hustle-installer.php
1.258 KB
3 Jan 2022 12.51 PM
builxejc / builxejc
0644
class-hustle-meta.php
1.9 KB
6 Apr 2023 4.20 PM
builxejc / builxejc
0644
class-hustle-module-admin.php
9.39 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
class-hustle-module-collection.php
12.108 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
class-hustle-module-fields.php
0.436 KB
18 Mar 2026 9.34 PM
builxejc / builxejc
0644
class-hustle-module-page-abstract.php
43.598 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
class-hustle-module-validator.php
2.074 KB
18 Mar 2026 9.34 PM
builxejc / builxejc
0644
class-hustle-notifications.php
29.269 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
class-hustle-settings-admin.php
16.863 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
class-hustle-wp-dashboard-page.php
16.575 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
class-opt-in.php
2.35 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-background-conversion-log.php
2.701 KB
18 Mar 2026 9.34 PM
builxejc / builxejc
0644
hustle-deletion.php
7.746 KB
18 Mar 2026 9.34 PM
builxejc / builxejc
0644
hustle-embedded-admin.php
0.712 KB
13 Oct 2022 9.51 AM
builxejc / builxejc
0644
hustle-entries-admin.php
29.812 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
hustle-entry-model.php
32.216 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-general-data-protection.php
11.44 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
hustle-init.php
1.382 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-mail.php
6.206 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
hustle-migration.php
55.115 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
hustle-model.php
34.073 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-module-model.php
30.92 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-module-widget-legacy.php
4.953 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
hustle-module-widget.php
3.903 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
hustle-modules-common-admin-ajax.php
32.168 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-popup-admin.php
0.639 KB
13 Oct 2022 9.51 AM
builxejc / builxejc
0644
hustle-providers-admin.php
6.822 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-providers.php
16.267 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
hustle-settings-admin-ajax.php
24.727 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-settings-page.php
5.03 KB
17 Apr 2023 3.18 PM
builxejc / builxejc
0644
hustle-slidein-admin.php
0.651 KB
13 Oct 2022 9.51 AM
builxejc / builxejc
0644
hustle-sshare-admin.php
2.503 KB
13 Oct 2022 9.51 AM
builxejc / builxejc
0644
hustle-sshare-model.php
21.675 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
hustle-tracking-model.php
25.706 KB
18 Mar 2026 9.34 PM
builxejc / builxejc
0644
interface-hustle-auth-provider.php
0.509 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
opt-in-geo.php
13.099 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644
opt-in-utils.php
41.588 KB
25 May 2026 1.17 PM
builxejc / builxejc
0644
opt-in-wpmudev-api.php
3.985 KB
26 Jan 2026 12.22 PM
builxejc / builxejc
0644

✘✘ GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME ✘✘
Static GIF Static GIF