Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggest text to the websites privacy-page, about OSM & Google #875

Open
Tracked by #639
carstingaxion opened this issue Sep 17, 2024 · 0 comments
Open
Tracked by #639

Suggest text to the websites privacy-page, about OSM & Google #875

carstingaxion opened this issue Sep 17, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@carstingaxion
Copy link
Collaborator

carstingaxion commented Sep 17, 2024

Every plugin that collects, uses, or stores user data, or passes it to an external source or third party, should add a section of suggested text to the privacy policy postbox. This is best done with wp_add_privacy_policy_content( $plugin_name, $policy_text ). This will allow site administrators to pull that information into their site’s privacy policy.

https://developer.wordpress.org/plugins/privacy/suggesting-text-for-the-site-privacy-policy/

GatherPress should do the same and offer at least the two sentences from the readme about the map providers (OSM & Google) to the policy.

The docs have this example:

/**
 * Adds a privacy policy statement.
 */
function wporg_add_privacy_policy_content() {
	if ( ! function_exists( 'wp_add_privacy_policy_content' ) ) {
		return;
	}
	$content = '<p class="privacy-policy-tutorial">' . __( 'Some introductory content for the suggested text.', 'text-domain' ) . '</p>'
			. '<strong class="privacy-policy-tutorial">' . __( 'Suggested Text:', 'my_plugin_textdomain' ) . '</strong> '
			. sprintf(
				__( 'When you leave a comment on this site, we send your name, email address, IP address and comment text to example.com. Example.com does not retain your personal data. The example.com privacy policy is <a href="%1$s" target="_blank">here</a>.', 'text-domain' ),
				'https://example.com/privacy-policy'
			);
	wp_add_privacy_policy_content( 'Example Plugin', wp_kses_post( wpautop( $content, false ) ) );
}

add_action( 'admin_init', 'wporg_add_privacy_policy_content' );
@carstingaxion carstingaxion changed the title IMHO, GatherPress should suggest some text to the websites privacy-page, which explains the use. Suggest text to the websites privacy-page, about OSM & Google Sep 17, 2024
@carstingaxion carstingaxion added good first issue Good for newcomers enhancement New feature or request labels Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant