PluginProbe
GiveWP – Donation Plugin and Fundraising Platform / 4.18.0
GiveWP – Donation Plugin and Fundraising Platform v4.18.0
4.18.0 4.17.0 4.16.9 4.16.8.1 4.16.8 4.16.7.2 4.16.7.1 4.16.7 4.16.6.1 4.16.6 4.16.5.1 4.16.5 4.16.4 4.16.3 4.16.2 4.16.1 4.16.0 4.15.5 4.15.4 4.15.3 4.15.2 4.15.1 4.15.0 2.3.0 2.3.1 All 257 releases
give / src / PaymentGateways / PayPalCommerce / Migrations / RemoveLogWithCardInfo.php

RemoveLogWithCardInfo.php in GiveWP – Donation Plugin and Fundraising Platform 4.18.0, at src/PaymentGateways/PayPalCommerce/Migrations/RemoveLogWithCardInfo.php

52 lines 845 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace Give\PaymentGateways\PayPalCommerce\Migrations;
4
5 use Give\Framework\Database\DB;
6 use Give\Framework\Migrations\Contracts\Migration;
7
8 /**
9 * @since 2.19.7
10 */
11 class RemoveLogWithCardInfo extends Migration
12 {
13 /**
14 * @inheritDoc
15 */
16 public function run()
17 {
18 global $wpdb;
19
20 DB::query(
21 "
22 DELETE FROM {$wpdb->prefix}give_log
23 WHERE data like '%cardInfo%'
24 "
25 );
26 }
27
28 /**
29 * @inerhitDoc
30 */
31 public static function id()
32 {
33 return 'remove-log-with-card-info';
34 }
35
36 /**
37 * @inerhitDoc
38 */
39 public static function timestamp()
40 {
41 return strtotime('2022-03-25');
42 }
43
44 /**
45 * @inerhitDoc
46 */
47 public static function title()
48 {
49 return 'Remove Log With CardInfo';
50 }
51 }
52