PluginProbe
WP Attachments / 6.0.2
WP Attachments v6.0.2
6.0.2 6.0.3 trunk 2.0 3 3.0.1 3.0.2 3.0.3 3.1 3.1.1 3.1.2 3.1.3 3.1.4 3.2 3.2.1 3.2.2 3.2.3 3.2.4 3.3 3.4 3.5 3.5.1 3.5.2 3.5.3 3.5.4 All 52 releases
wp-attachments / uninstall.php

uninstall.php in WP Attachments 6.0.2, at uninstall.php

19 lines 501 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * Uninstall routine for WP Attachments.
4 *
5 * Runs only when the plugin is deleted from the Plugins screen.
6 * Removes all plugin data including visitor IP records.
7 *
8 * @package WP_Attachments
9 */
10
11 // Never run this file outside of the WordPress uninstall flow.
12 if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
13 exit;
14 }
15
16 // Clean up IP data that was stored by the plugin.
17 // Keep download counters (wpa-download) and post settings (wpa_off).
18 delete_post_meta_by_key( 'wpa-download-control' );
19