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/misc.php

    r43114 r43115  
    12331233
    12341234    /**
    1235      * Add privacy information to the postbox shown when editing the privacy policy.
     1235     * Add content to the postbox shown when editing the privacy policy.
     1236     *
     1237     * Plugins and themes should suggest text for inclusion in the site's privacy policy.
     1238     * The suggested text should contain information about any functionality that affects user privacy,
     1239     * and will be shown in the Suggested Privacy Policy Content postbox.
    12361240     *
    12371241     * Intended for use from `wp_add_privacy_policy_content()`.
    12381242     *
    1239      * $since 5.0.0
    1240      *
    1241      * @param string $plugin_name The plugin'as name. Will be shown in the privacy policy metabox.
    1242      * @param string $policy_text The content that should appear in the site's privacy policy.
     1243     * $since 4.9.6
     1244     *
     1245     * @param string $plugin_name The name of the plugin or theme that is suggesting content for the site's privacy policy.
     1246     * @param string $policy_text The suggested content for inclusion in the policy.
    12431247     */
    12441248    public static function add( $plugin_name, $policy_text ) {
Note: See TracChangeset for help on using the changeset viewer.