Privacy > Policy Guide). Describes only what the code actually does. */ final class Privacy { public const DOMAIN = 'streamgoals-donate'; public static function register(): void { add_action( 'admin_init', array( self::class, 'add_policy_content' ) ); } public static function add_policy_content(): void { if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) { return; } wp_add_privacy_policy_content( 'StreamGoals Donate', self::content() ); } /** @param callable|null $t Translator taking one string (defaults to WordPress' __ with this text domain). */ public static function content( ?callable $t = null ): string { $t ??= static fn( string $s ): string => __( $s, self::DOMAIN ); // phpcs:ignore WordPress.WP.I18n.NonSingularStringLiteralText $html = '
'; $html .= '

' . $t( 'Suggested text for your privacy policy. Review it and adjust it to how you use the plugin, and to the laws that apply to you.' ) . '

'; $html .= '' . $t( 'Suggested text:' ) . ' '; $html .= '

' . $t( 'Donations' ) . '

'; $html .= '

' . $t( 'When you make a donation on this site, we store the amount, the currency, the date and time, the PayPal order and capture identifiers, and the display name you entered, unless you chose to donate anonymously. The name of an anonymous donor is never stored. If you write a message with your donation, we store that message too, so please do not put personal details in it.' ) . '

'; $html .= '

' . $t( 'We do not store your email address, postal address or payment card details. Payments are processed by PayPal, which collects and handles those details under its own privacy statement:' ) . ' https://www.paypal.com/webapps/mpp/ua/privacy-full

'; $html .= '

' . $t( 'The donation form loads PayPal\'s payment script from paypal.com, so PayPal receives your IP address and browser information when the form is shown.' ) . '

'; $html .= '

' . $t( 'How long we keep data' ) . '

'; $html .= '

' . $t( 'Donation records are kept until the site owner deletes them. The site owner can export them as a CSV file. Checkouts that were started but never paid are removed automatically after a week.' ) . '

'; $html .= '

' . $t( 'Abuse protection' ) . '

'; $html .= '

' . $t( 'To stop abuse, the number of donation requests from one visitor is limited. For this, a one-way hash of the visitor\'s IP address is used as the name of a temporary cache entry (a WordPress transient) that expires after a few minutes. The IP address itself is not written to the donation records. Expired entries can remain in the database until WordPress cleans them up, and on sites with a persistent object cache they are kept in that cache instead.' ) . '

'; $html .= '

' . $t( 'Stream overlays' ) . '

'; $html .= '

' . $t( 'The overlay pages shown in broadcasting software load no third-party scripts, fonts or services. They show donor display names and messages (not the names of anonymous donors) and any images or sounds the site owner chose from the Media Library.' ) . '

'; $html .= '
'; return $html; } }