Support » Developing with WordPress » wp_add_privacy_policy_content doesnt seem to add any section to privacy page

  • Resolved CodeBard

    (@codebard)


    Im using wp_add_privacy_policy_content to add a section to the new privacy policy page 4.9.6 core generates, but content doesnt seem to be added.

    What i did was to hook a function to admin_init, and then inside that function call wp_add_privacy_policy_content per recommendation below.

    https://developer.wordpress.org/plugins/privacy/

    Can anyone give some pointers?

Viewing 6 replies - 1 through 6 (of 6 total)
  • CodeBard

    (@codebard)

    I got the answer to this from GDPR channel at WP slack – per Allen:

    wp_add_privacy_policy_content adds that section to /wp-admin/tools.php?wp-privacy-policy-guide=1 , from where the site owner is supposed to copy that section and add to the privacy page the site uses. This may be a plugin-generated one or WP generated one.

    wp_add_privacy_policy_content doesnt add the section directly to the privacy page 4.9.6 generates. It has to be manually done.

    Moderator Steve Stern

    (@sterndata)

    Support Volunteer

    Interesting…. /wp-admin/tools.php?wp-privacy-policy-guide=1 doesn’t seem to be on any menus.

    CodeBard

    (@codebard)

    Yes. Also the info about how to use wp_add_privacy_policy_content is not included in plugin handbook’s privacy section. I was able to learn about them by asking in GDPR channel in WP slack.

    Moderator Steve Stern

    (@sterndata)

    Support Volunteer

    CodeBard

    (@codebard)

    Great!

    The link to /tools.php?wp-privacy-policy-guide=1 appears in the top of the privacy page editor in 4.9.6.
    And it seems to be working!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.