Skip to content

Commit

Permalink
Update privacy.php
Browse files Browse the repository at this point in the history
  • Loading branch information
takayukister committed May 13, 2023
1 parent 49dad6f commit 6436433
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions admin/includes/privacy.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
<?php
/**
* Support for personal data eraser tool
*
* @link https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/
*/


add_filter( 'wp_privacy_personal_data_erasers',
'flamingo_privacy_register_personal_data_erasers',
10, 1
);

/**
* Registers callback functions.
*/
function flamingo_privacy_register_personal_data_erasers( $erasers ) {
return array_merge( (array) $erasers, array(
'flamingo-contact' => array(
Expand All @@ -18,6 +27,10 @@ function flamingo_privacy_register_personal_data_erasers( $erasers ) {
) );
}


/**
* Callback for the contact data.
*/
function flamingo_privacy_contact_eraser( $email_address, $page = 1 ) {
$number = 100;

Expand Down Expand Up @@ -60,6 +73,10 @@ function flamingo_privacy_contact_eraser( $email_address, $page = 1 ) {
);
}


/**
* Callback for the inbound messages data.
*/
function flamingo_privacy_inbound_eraser( $email_address, $page = 1 ) {
$number = 100;

Expand Down

0 comments on commit 6436433

Please sign in to comment.