WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/02/2018 03:56:03 AM (18 months ago)
Author:
SergeyBiryukov
Message:

Privacy: add better docs for wp_add_privacy_policy_content() and WP_Privacy_Policy_Content::add().

Props azaozz.
Merges [43003] to the 4.9 branch.
See #43620.

Location:
branches/4.9
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/4.9

  • branches/4.9/src/wp-admin/includes/plugin.php

    r43101 r43115  
    18991899
    19001900/**
    1901  * Helper function for adding plugin specific information to the postbox shown when editing the privacy policy.
     1901 * Helper function for adding content to the postbox shown when editing the privacy policy.
     1902 *
     1903 * Plugins and themes should suggest text for inclusion in the site's privacy policy.
     1904 * The suggested text should contain information about any functionality that affects user privacy,
     1905 * and will be shown in the Suggested Privacy Policy Content postbox.
     1906 *
     1907 * A plugin or theme can use this function multiple times as long as it will help to better present
     1908 * the suggested policy content. For example modular plugins such as WooCommerse or Jetpack
     1909 * can add or remove suggested content depending on the modules/extensions that are enabled.
    19021910 *
    19031911 * Intended for use with the `'admin_init'` action.
     
    19051913 * @since 4.9.6
    19061914 *
    1907  * @param string $plugin_name The plugin'as name. Will be shown in the privacy policy metabox.
    1908  * @param string $policy_text The content that should appear in the site's privacy policy.
     1915 * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
     1916 * @param string $policy_text The suggested content for inclusion in the policy.
    19091917 *                            For more information see the Plugins Handbook https://developer.wordpress.org/plugins/.
    19101918 */
Note: See TracChangeset for help on using the changeset viewer.