WP_Privacy_Policy_Content::policy_text_changed_notice()
Outputs a warning when some privacy info has changed.
Method of the class: WP_Privacy_Policy_Content{}
No Hooks.
Return
null
. Nothing (null).
Usage
$result = WP_Privacy_Policy_Content::policy_text_changed_notice();
Changelog
Since 4.9.6 | Introduced. |
WP_Privacy_Policy_Content::policy_text_changed_notice() WP Privacy Policy Content::policy text changed notice code WP 6.6.2
public static function policy_text_changed_notice() { $screen = get_current_screen()->id; if ( 'privacy' !== $screen ) { return; } $privacy_message = sprintf( /* 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' ) ) ); wp_admin_notice( $privacy_message, array( 'type' => 'warning', 'additional_classes' => array( 'policy-text-updated' ), 'dismissible' => true, ) ); }