Just a basic class
This commit is contained in:
parent
823332b5db
commit
e8e5b40ba8
|
@ -0,0 +1,44 @@
|
||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* Privacy/GDPR related functionality.
|
||||||
|
*
|
||||||
|
* @package WooCommerce\Classes
|
||||||
|
*/
|
||||||
|
|
||||||
|
defined( 'ABSPATH' ) || exit;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* WC_Privacy Class.
|
||||||
|
*/
|
||||||
|
class WC_Privacy {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Init - hook into events.
|
||||||
|
*/
|
||||||
|
public static function init() {
|
||||||
|
// Add hooks here.
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Anonymize/remove personal data for a given email address.
|
||||||
|
*
|
||||||
|
* @param string $email Email address.
|
||||||
|
*/
|
||||||
|
public static function remove_personal_data( $email ) {
|
||||||
|
// Do something.
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get personal data for a given email address. This can be used for exports.
|
||||||
|
*
|
||||||
|
* @param string $email Email address.
|
||||||
|
* @return array Array of personal data.
|
||||||
|
*/
|
||||||
|
public static function get_personal_data( $email ) {
|
||||||
|
// Do something.
|
||||||
|
return array();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
WC_Privacy::init();
|
|
@ -326,6 +326,7 @@ final class WooCommerce {
|
||||||
include_once WC_ABSPATH . 'includes/class-wc-cart-totals.php';
|
include_once WC_ABSPATH . 'includes/class-wc-cart-totals.php';
|
||||||
include_once WC_ABSPATH . 'includes/customizer/class-wc-shop-customizer.php';
|
include_once WC_ABSPATH . 'includes/customizer/class-wc-shop-customizer.php';
|
||||||
include_once WC_ABSPATH . 'includes/class-wc-regenerate-images.php';
|
include_once WC_ABSPATH . 'includes/class-wc-regenerate-images.php';
|
||||||
|
include_once WC_ABSPATH . 'includes/class-wc-privacy.php';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Data stores - used to store and retrieve CRUD object data from the database.
|
* Data stores - used to store and retrieve CRUD object data from the database.
|
||||||
|
|
Loading…
Reference in New Issue