WordPress at Your Fingertips
function is not described

WP_Privacy_Policy_Content::policy_text_changed_notice() public WP 4.9.6

Output a warning when some privacy info has changed.

{} It's a method of the class: WP_Privacy_Policy_Content{}

No Hooks.

Return

null. Nothing.

Usage

$result = WP_Privacy_Policy_Content::policy_text_changed_notice();

Changelog

Since 4.9.6 Introduced.

Code of WP_Privacy_Policy_Content::policy_text_changed_notice() WP 5.8.2

<?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
}