1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
<?php // phpcs:ignoreFile
namespace AutomateWoo;
defined( 'ABSPATH' ) || exit;
/** * @class Privacy * @since 4.0 */ class Privacy extends Privacy_Abstract {
/** * Init - hook into events. */ public function __construct() { parent::__construct( __( 'AutomateWoo', 'automatewoo' ) );
// erasers $this->add_eraser( 'automatewoo-customer-logs', __( 'Workflow Logs', 'automatewoo' ), [ 'AutomateWoo\Privacy_Erasers', 'customer_workflow_logs' ] ); $this->add_eraser( 'automatewoo-customer-queue', __( 'Queued Events', 'automatewoo' ), [ 'AutomateWoo\Privacy_Erasers', 'customer_workflow_queue' ] ); $this->add_eraser( 'automatewoo-cart', __( 'Saved Cart', 'automatewoo' ), [ 'AutomateWoo\Privacy_Erasers', 'customer_cart' ] ); $this->add_eraser( 'automatewoo-user-meta', __( 'User Meta', 'automatewoo' ), [ 'AutomateWoo\Privacy_Erasers', 'user_meta' ] ); $this->add_eraser( 'automatewoo-user-tags', __( 'User Tags', 'automatewoo' ), [ 'AutomateWoo\Privacy_Erasers', 'user_tags' ] ); // must be last $this->add_eraser( 'automatewoo-customer-object', __( 'AutomateWoo Customer Object', 'automatewoo' ), [ 'AutomateWoo\Privacy_Erasers', 'customer_and_guest_object' ] );
// exporters $this->add_exporter( 'automatewoo-customer', __( 'Customer Object', 'automatewoo' ), [ 'AutomateWoo\Privacy_Exporters', 'customer_data' ] ); $this->add_exporter( 'automatewoo-cart', __( 'Saved Cart', 'automatewoo' ), [ 'AutomateWoo\Privacy_Exporters', 'customer_cart' ] ); $this->add_exporter( 'automatewoo-customer-logs', __( 'Workflow Logs', 'automatewoo' ), [ 'AutomateWoo\Privacy_Exporters', 'customer_workflow_logs' ] ); $this->add_exporter( 'automatewoo-customer-queue', __( 'Queued Events', 'automatewoo' ), [ 'AutomateWoo\Privacy_Exporters', 'customer_workflow_queue' ] );
do_action( 'automatewoo/privacy/loaded' ); }
/** * Add suggested privacy policy content for the privacy policy page. */ public function get_privacy_message() { return Privacy_Policy_Guide::get_content(); }
}
|