woocommerce_privacy_erase_download_personal_data

woocommerce_privacy_erase_download_personal_data

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_privacy_erase_download_personal_data') is found 1 times:

  • /includes/class-wc-privacy-erasers.php line 193
     
    		$customer_download_data_store = WC_Data_Store::load( 'customer-download' );
    
    		// Revoke download permissions.
    		if ( apply_filters( 'woocommerce_privacy_erase_download_personal_data', $erasure_enabled, $email_address ) ) {
    			if ( $user instanceof WP_User ) {
    				$result = $customer_download_data_store->delete_by_user_id( (int) $user->ID );
    			} else {
    				$result = $customer_download_data_store->delete_by_user_email( $email_address );
    			}
    			if ( $result ) {