diff --git a/uninstall.php b/uninstall.php new file mode 100644 index 00000000..06098cfb --- /dev/null +++ b/uninstall.php @@ -0,0 +1,37 @@ +prepare(" + DELETE FROM $wpdb->usermeta + WHERE meta_key IN ( + %s, + %s + ) +", 'fair_avatar_site_id', 'fair_avatar_id' ); + +// And actually run it. +// phpcs:ignore WordPress.DB.PreparedSQL.NotPrepared -- we did use the prepare function above +$wpdb->query( $query_args );