WP_Privacy_Policy_Content::policy_text_changed_notice() WordPress Method

The WP_Privacy_Policy_Content::policy_text_changed_notice() method is used to display a notice when the privacy policy text is changed.

WP_Privacy_Policy_Content::policy_text_changed_notice() #

Output a warning when some privacy info has changed.


Source

File: wp-admin/includes/class-wp-privacy-policy-content.php

	public static function policy_text_changed_notice() {
		global $post;

		$screen = get_current_screen()->id;

		if ( 'privacy' !== $screen ) {
			return;
		}

		?>
		<div class="policy-text-updated notice notice-warning is-dismissible">
			<p>
			<?php
				printf(
					/* translators: %s: Privacy Policy Guide URL. */
					__( 'The suggested privacy policy text has changed. Please <a href="%s">review the guide</a> and update your privacy policy.' ),
					esc_url( admin_url( 'privacy-policy-guide.php?tab=policyguide' ) )
				);
			?>
			</p>
		</div>
		<?php
	}


Top ↑

Changelog

Changelog
VersionDescription
4.9.6Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.